From 0f65c7bd7e5e4c2286d97d204ac8c650628bce1e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 8 May 2023 10:35:12 -0500 Subject: [PATCH] Auth: fix otherAccounts throwing a fullscreen error in local dev --- app/soapbox/actions/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soapbox/actions/auth.ts b/app/soapbox/actions/auth.ts index 06fe848e2..e4a10edd0 100644 --- a/app/soapbox/actions/auth.ts +++ b/app/soapbox/actions/auth.ts @@ -242,7 +242,8 @@ export const fetchOwnAccounts = () => return state.auth.users.forEach((user) => { const account = state.accounts.get(user.id); if (!account) { - dispatch(verifyCredentials(user.access_token, user.url)); + dispatch(verifyCredentials(user.access_token, user.url)) + .catch(() => console.warn(`Failed to load account: ${user.url}`)); } }); };