From e28263ff1f7c40d405be78e8d03408c75b9fc92e Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 15 Feb 2026 13:45:34 +0100 Subject: [PATCH] Fix comments --- web/components/profile-comment-section.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/components/profile-comment-section.tsx b/web/components/profile-comment-section.tsx index 49f60f9..e7ee434 100644 --- a/web/components/profile-comment-section.tsx +++ b/web/components/profile-comment-section.tsx @@ -27,7 +27,7 @@ export const ProfileCommentSection = (props: { const [profile, setProfile] = useState(props.profile) const isCurrentUser = currentUser?.id === onUser.id - if (simpleView && (!profile.comments_enabled || parentComments.length == 0)) + if (!currentUser && (!profile.comments_enabled || parentComments.length == 0)) return null return ( @@ -62,7 +62,7 @@ export const ProfileCommentSection = (props: { {!simpleView && ( <> - {profile.comments_enabled && ( + {currentUser && profile.comments_enabled && ( <>
{isCurrentUser ? ( @@ -71,7 +71,7 @@ export const ProfileCommentSection = (props: { <>{t('profile.comments.other_user_hint', 'If you know them, write something nice that adds to their profile.')} )}
- {currentUser && !isCurrentUser && ( + {!isCurrentUser && (