We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6722b commit 9a91eabCopy full SHA for 9a91eab
web/hooks/use-user-supabase.ts
@@ -16,6 +16,9 @@ export function useUserById(userId: string | undefined) {
16
getFullUserById(userId).then((result) => {
17
setUser(result)
18
})
19
+ .catch(() => {
20
+ console.log('Failed to fetch user')
21
+ })
22
}
23
}, [userId])
24
return user
web/hooks/use-user.ts
@@ -50,6 +50,10 @@ export const useWebsocketUser = (userId: string | undefined) => {
50
51
52
53
54
55
+ setUser(null)
56
57
} else {
58
setUser(null)
59
0 commit comments