fix: Fix logout button

This commit is contained in:
Xyphyn committed 2023-07-07 18:16:16 -07:00
1 parent c0702d645c
commit ab8630a76e
8 files changed
+25 -32

No files matched your search

+6 -1
View File
@@ -34,11 +34,16 @@
}
async function markAllAsRead() {
if (!$user) {
goto('/login')
return
}
const response = await getClient().markAllAsRead({
auth: $authData!.token,
})
$user.unreads = 0
$user!.unreads = 0
goto($page.url, {
invalidateAll: true,