diff --git a/src/lib/auth.svelte.ts b/src/lib/auth.svelte.ts index 8717ae9e..54b2e84e 100644 --- a/src/lib/auth.svelte.ts +++ b/src/lib/auth.svelte.ts @@ -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)) - }) + }) }) }) }