Skip to content

Commit ddecd02

Browse files
authored
Revert "fix: [lw-12638] fix intermittent states during wallet creation and sw…" (#1840)
This reverts commit 3c01049.
1 parent 3c01049 commit ddecd02

File tree

2 files changed

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

2 files changed

+4
-2
lines changed

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

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

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

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

0 commit comments

Comments
 (0)