auth: rename profile.data -> profile.current
This commit is contained in:
76 files changed
+233
-224
No files matched your search
@@ -24,7 +24,7 @@
|
||||
let loading = $state(false)
|
||||
|
||||
async function markAsRead(isRead: boolean) {
|
||||
if (!profile.data?.jwt) return
|
||||
if (!profile.current?.jwt) return
|
||||
|
||||
loading = true
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
item.read = isRead
|
||||
if (profile.data.user) $notifications.inbox += isRead ? -1 : 1
|
||||
if (profile.current.user) $notifications.inbox += isRead ? -1 : 1
|
||||
|
||||
loading = false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user