fix anon user issues

merge-requests/1699/head
Henry Jameson 2 years ago
parent ebe095bd76
commit 96090ea98f

@ -26,7 +26,7 @@ export const defaultState = {
collapseNav: false collapseNav: false
}, },
collections: { collections: {
pinnedNavItems: ['home', 'dms', 'chats', 'about'] pinnedNavItems: ['home', 'dms', 'chats']
} }
}, },
// raw data // raw data
@ -262,7 +262,7 @@ export const mutations = {
const live = userData.storage const live = userData.storage
state.raw = live state.raw = live
let cache = state.cache let cache = state.cache
if (cache._user !== userData.fqn) { if (cache && cache._user !== userData.fqn) {
console.warn('cache belongs to another user! reinitializing local cache!') console.warn('cache belongs to another user! reinitializing local cache!')
cache = null cache = null
} }

Loading…
Cancel
Save