fix: Fix inbox

This commit is contained in:
Xyphyn committed 2023-07-13 12:48:36 -07:00
1 parent a6f5dce056
commit 39ce616d0d
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ authData.subscribe(async (data) => {
auth: data.token,
})
if (!site.my_user) throw Error('Missing user')
if (!site?.my_user) throw Error('Missing user')
user.set({ ...site.my_user.local_user_view, unreads: 0 })