diff --git a/packages/app/src/Pages/Profile/ProfilePage.tsx b/packages/app/src/Pages/Profile/ProfilePage.tsx index fdc5c1ae..0e42f9da 100644 --- a/packages/app/src/Pages/Profile/ProfilePage.tsx +++ b/packages/app/src/Pages/Profile/ProfilePage.tsx @@ -153,7 +153,7 @@ export default function ProfilePage({ id: propId, state }: ProfilePageProps) { } function username() { - const followedByFriends = user.pubkey ? socialGraphInstance.followedByFriends(user.pubkey) : new Set(); + const followedByFriends = user?.pubkey ? socialGraphInstance.followedByFriends(user.pubkey) : new Set(); const MAX_FOLLOWED_BY_FRIENDS = 3; return ( <>