From b8b2778b69182dd5b7cafb93f455277271028533 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Mon, 22 Aug 2022 18:27:56 -0500 Subject: [PATCH] Fix flash that reveals other users' profit --- web/pages/[username]/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pages/[username]/index.tsx b/web/pages/[username]/index.tsx index 541041ed..441ee00d 100644 --- a/web/pages/[username]/index.tsx +++ b/web/pages/[username]/index.tsx @@ -40,7 +40,7 @@ export default function UserProfile(props: { user: User | null }) { useTracking('view user profile', { username }) - if (user === undefined) return
+ if (user === undefined || user?.username !== username) return
return user ? (