Fix page crash when switching accounts

This commit is contained in:
Alex Gleason 2023-07-20 21:37:33 -05:00
parent be788a0f8f
commit 9e59b5d935
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -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: