Skip to content

Commit

Permalink
fix(startup): fix infinite loading in some scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Dec 3, 2024
1 parent dafb2f5 commit 2d84f18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/app_start/vip/startup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const VipStartup = () => {
<>
<TermsUse />
{!isCongCreate && !isEncryptionCodeOpen && isLoading && (
<WaitingLoader type="lottie" />
<WaitingLoader type="lottie" variant="standard" />
)}
{isUserSignIn && <Signin />}
{isUserMfaVerify && <VerifyMFA />}
Expand Down
2 changes: 2 additions & 0 deletions src/features/app_start/vip/startup/useStartup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ const useStartup = () => {

if (status === 403) {
await userSignOut();
setIsLoading(false);
showSignin();
return;
}

Expand Down

0 comments on commit 2d84f18

Please sign in to comment.