Merge branch 'auth-switch-fix' into 'develop'

Fix page crash when switching accounts

See merge request soapbox-pub/soapbox!2622
environments/review-develop-3zknud/deployments/3665
Alex Gleason 2023-07-21 02:38:02 +00:00
commit 78436172db
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -347,7 +347,7 @@ const reducer = (state: State, action: AnyAction) => {
case VERIFY_CREDENTIALS_FAIL:
return deleteForbiddenToken(state, action.error, action.token);
case SWITCH_ACCOUNT:
return state.set('me', action.account.get('url'));
return state.set('me', action.account.url);
case ME_FETCH_SKIP:
return state.set('me', null);
case MASTODON_PRELOAD_IMPORT: