From e0b85b90f97cfc1c60ab845af610b45940a6b395 Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Fri, 24 Nov 2023 16:37:12 +0200 Subject: [PATCH] user?.pubkey --- packages/app/src/Pages/Profile/ProfilePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ( <>