diff --git a/web/components/page-views/signin.tsx b/web/components/page-views/signin.tsx index 547170632..9b40c9f4b 100644 --- a/web/components/page-views/signin.tsx +++ b/web/components/page-views/signin.tsx @@ -77,9 +77,14 @@ export const SignInView = observer(() => { ); const mutateUserInfo = useCallback(() => { - fetchCurrentUser().then((user) => { - handleLoginRedirection(user); - }); + setLoading(true); + fetchCurrentUser() + .then((user) => { + handleLoginRedirection(user); + }) + .catch(() => { + setLoading(false); + }); }, [fetchCurrentUser, handleLoginRedirection]); useEffect(() => {