Fix flash that reveals other users' profit
This commit is contained in:
parent
d081f5215d
commit
b8b2778b69
|
@ -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} />
|
||||
|
|
Loading…
Reference in New Issue
Block a user