fix anon user issues

This commit is contained in:
Henry Jameson 2022-08-15 21:03:27 +03:00
parent ebe095bd76
commit 96090ea98f

View File

@ -26,7 +26,7 @@ export const defaultState = {
collapseNav: false
},
collections: {
pinnedNavItems: ['home', 'dms', 'chats', 'about']
pinnedNavItems: ['home', 'dms', 'chats']
}
},
// raw data
@ -262,7 +262,7 @@ export const mutations = {
const live = userData.storage
state.raw = live
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!')
cache = null
}