Fix flash that reveals other users' profit

This commit is contained in:
James Grugett 2022-08-22 18:27:56 -05:00
parent d081f5215d
commit b8b2778b69

View File

@ -40,7 +40,7 @@ export default function UserProfile(props: { user: User | null }) {
useTracking('view user profile', { username })
if (user === undefined) return <div />
if (user === undefined || user?.username !== username) return <div />
return user ? (
<UserPage user={user} currentUser={currentUser || undefined} />