Merge branch 'auth-switch-fix' into 'develop'
Fix page crash when switching accounts See merge request soapbox-pub/soapbox!2622
This commit is contained in:
commit
78436172db
|
@ -347,7 +347,7 @@ const reducer = (state: State, action: AnyAction) => {
|
||||||
case VERIFY_CREDENTIALS_FAIL:
|
case VERIFY_CREDENTIALS_FAIL:
|
||||||
return deleteForbiddenToken(state, action.error, action.token);
|
return deleteForbiddenToken(state, action.error, action.token);
|
||||||
case SWITCH_ACCOUNT:
|
case SWITCH_ACCOUNT:
|
||||||
return state.set('me', action.account.get('url'));
|
return state.set('me', action.account.url);
|
||||||
case ME_FETCH_SKIP:
|
case ME_FETCH_SKIP:
|
||||||
return state.set('me', null);
|
return state.set('me', null);
|
||||||
case MASTODON_PRELOAD_IMPORT:
|
case MASTODON_PRELOAD_IMPORT:
|
||||||
|
|
Loading…
Reference in New Issue