chore: unset userstore when not logged in

This commit is contained in:
Ben Allfree 2025-01-10 03:58:00 -08:00
parent a3a60517de
commit ffaa2946d7

View File

@ -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?.()