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 && (