Auth: fix otherAccounts throwing a fullscreen error in local dev

This commit is contained in:
Alex Gleason 2023-05-08 10:35:12 -05:00
parent 0f91282edc
commit 0f65c7bd7e
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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}`));
}
});
};