Skip to content

Commit ba7fab5

Browse files
authored
fix: [lw-12638] fix intermittent states during wallet creation and switch (#1841)
1 parent 0e100dd commit ba7fab5

File tree

2 files changed

+2
-4
lines changed
  • apps/browser-extension-wallet/src
    • components/MainMenu/DropdownMenuOverlay/components
    • views/bitcoin-mode/features/multi-wallet/create-wallet

2 files changed

+2
-4
lines changed

apps/browser-extension-wallet/src/components/MainMenu/DropdownMenuOverlay/components/UserInfo.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ export const UserInfo = ({
141141
duration: TOAST_DEFAULT_DURATION,
142142
text: t('multiWallet.activated.wallet', { walletName: wallet.metadata.name })
143143
});
144-
window.location.reload();
145144
}}
146145
type={getUiWalletType(wallet.type)}
147146
profile={

apps/browser-extension-wallet/src/views/bitcoin-mode/features/multi-wallet/create-wallet/context.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ export const CreateWalletProvider = ({ children }: Props): React.ReactElement =>
121121
await finalizeWalletCreation(state);
122122
history.push(walletRoutePaths.assets);
123123
window.location.reload();
124-
break;
124+
} else {
125+
setStep(WalletCreateStep.SavePaperWallet);
125126
}
126-
127-
setStep(WalletCreateStep.SavePaperWallet);
128127
break;
129128
}
130129
case WalletCreateStep.SavePaperWallet: {

0 commit comments

Comments
 (0)