Skip to content

Commit

Permalink
fix(extension): display loader in popup view while switching wallet/a…
Browse files Browse the repository at this point in the history
…ccount
  • Loading branch information
mkazlauskas authored and tomislavhoracek committed Feb 27, 2024
1 parent c22f8c2 commit e4ed066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/browser-extension-wallet/src/routes/PopupView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const PopupView = (): React.ReactElement => {
walletInfo,
isWalletLocked,
walletLock,
walletState,
initialHdDiscoveryCompleted
} = useWalletStore();

Expand Down Expand Up @@ -66,7 +67,7 @@ export const PopupView = (): React.ReactElement => {
return <UnlockWalletContainer />;
}

if (!!cardanoWallet && walletInfo && inMemoryWallet && initialHdDiscoveryCompleted) {
if (!!cardanoWallet && walletInfo && walletState && inMemoryWallet && initialHdDiscoveryCompleted) {
return <ExtensionRoutes />;
}

Expand Down

0 comments on commit e4ed066

Please sign in to comment.