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