Skip to content

Commit

Permalink
fix: prevent loading when the network fails (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss authored Nov 19, 2024
1 parent 5ff3c23 commit b28ce34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/adena-extension/src/router/popup/loading-main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,16 @@ const LoadingMain = (): ReactElement => {
if (state === 'CREATE' || state === 'LOGIN') {
return false;
}
if (isLoadingImage) {
return true;
}
if (state === 'FINISH') {
// If `failedNetwork` is null, it is loading.
if (failedNetwork) {
return false;
}
if (failedNetwork === false) {
if (isLoadingImage) {
return true;
}

if (currentBalances.length > 0) {
return false;
}
Expand Down

0 comments on commit b28ce34

Please sign in to comment.