From b4cab465536f011d5e14290be660dea60ac75f93 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 24 Mar 2021 16:24:46 -0500 Subject: [PATCH] Only reload with SWITCH_ACCOUNT (for now) --- app/soapbox/reducers/auth.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/soapbox/reducers/auth.js b/app/soapbox/reducers/auth.js index c0b0ffe09..dc9e67f4f 100644 --- a/app/soapbox/reducers/auth.js +++ b/app/soapbox/reducers/auth.js @@ -120,8 +120,7 @@ export default function auth(oldState = initialState, action) { const state = reducer(oldState, action); localStorage.setItem('soapbox:auth', JSON.stringify(state.toJS())); - // Reload the page when the current user changes. - if (state.get('me') !== oldState.get('me')) { + if (action.type === SWITCH_ACCOUNT) { location.reload(); }