From 9e59b5d935404eb7c28d775c9f06314caf3fa1af Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 20 Jul 2023 21:37:33 -0500 Subject: [PATCH] Fix page crash when switching accounts --- app/soapbox/reducers/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/reducers/auth.ts b/app/soapbox/reducers/auth.ts index 82f02ac80..bf9d22a59 100644 --- a/app/soapbox/reducers/auth.ts +++ b/app/soapbox/reducers/auth.ts @@ -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: