diff --git a/src/LoginGate.tsx b/src/LoginGate.tsx index facb47e..3a8e780 100644 --- a/src/LoginGate.tsx +++ b/src/LoginGate.tsx @@ -29,6 +29,8 @@ function EncryptionPart(props: { credentials: CredentialsType }) { // FIXME: verify the error is a 404 store.dispatch(fetchUserInfo(credentials, credentials.credentials.email)).then((fetchedUserInfo: Action) => { setUserInfo(fetchedUserInfo.payload); + }).catch(() => { + // Do nothing. }).finally(() => { setFetched(true); }); diff --git a/src/SyncGate.tsx b/src/SyncGate.tsx index f474c91..bec8375 100644 --- a/src/SyncGate.tsx +++ b/src/SyncGate.tsx @@ -146,7 +146,7 @@ class SyncGate extends React.PureComponent { syncAll(); } else { const fetching = store.dispatch(fetchUserInfo(this.props.etesync, me)) as any; - fetching.then(sync); + fetching.then(sync).catch(() => sync()); } }