fix: site data not updating on switch
This commit is contained in:
1 file changed
+3
-3
@@ -287,10 +287,10 @@ class Profile {
|
||||
})
|
||||
|
||||
$effect(() => {
|
||||
if (this.current.jwt)
|
||||
this.fetchUserData().then(() => {
|
||||
this.fetchUserData().then(() => {
|
||||
if (this.current.jwt)
|
||||
this.checkInbox().then(res => notifications.update(() => res))
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user