Skip to content

Commit ccc4862

Browse files
committed
Fix profile page not switching between users
1 parent 943c396 commit ccc4862

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/pages/[username]/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ export default function UserPage(props: UserPageProps) {
190190
}
191191

192192
load()
193+
} else {
194+
setUser(props.user)
195+
setProfile(props.profile)
196+
setNotFoundCustomText(props.notFoundCustomText)
193197
}
194198
// On web, initialProfile from SSR/ISR is already loaded
195199
}, [username, nativeMobile]);

0 commit comments

Comments
 (0)