diff --git a/app/soapbox/reducers/auth.js b/app/soapbox/reducers/auth.js index 96a22fbc8..4c3af84c7 100644 --- a/app/soapbox/reducers/auth.js +++ b/app/soapbox/reducers/auth.js @@ -167,11 +167,13 @@ export default function auth(oldState = initialState, action) { // Persist the state in localStorage persistAuth(state); - // Persist the session - if (action.reload !== false) { - persistSession(state); + if (action.reload === false) { + return oldState; } + // Persist the session + persistSession(state); + // Reload the page under some conditions maybeReload(oldState, state, action); }