mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
chore: unset userstore when not logged in
This commit is contained in:
parent
a3a60517de
commit
ffaa2946d7
@ -122,6 +122,8 @@ export const init = () => {
|
||||
isUserLoggedIn.subscribe(async (isLoggedIn) => {
|
||||
let unsub: UnsubscribeFunc | undefined
|
||||
if (!isLoggedIn) {
|
||||
userStore.set(undefined)
|
||||
|
||||
globalInstancesStore.set({})
|
||||
globalInstancesStoreReady.set(false)
|
||||
unsub?.()
|
||||
|
Loading…
x
Reference in New Issue
Block a user