From 96090ea98f070f8844bcd2c70e26bd5c82331812 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 15 Aug 2022 21:03:27 +0300 Subject: [PATCH] fix anon user issues --- src/modules/serverSideStorage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/serverSideStorage.js b/src/modules/serverSideStorage.js index 5581783f..eb089be6 100644 --- a/src/modules/serverSideStorage.js +++ b/src/modules/serverSideStorage.js @@ -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 }