Only delete token if it 403's
This commit is contained in:
parent
e6fe7f7d52
commit
377c0fb64a
|
@ -155,7 +155,7 @@ const reducer = (state, action) => {
|
|||
case VERIFY_CREDENTIALS_SUCCESS:
|
||||
return importCredentials(state, action.token, action.account);
|
||||
case VERIFY_CREDENTIALS_FAIL:
|
||||
return deleteToken(state, action.token);
|
||||
return action.error.response.status === 403 ? deleteToken(state, action.token) : state;
|
||||
case SWITCH_ACCOUNT:
|
||||
return state.set('me', action.accountId);
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue