Skip to content

Commit 952625f

Browse files
fix: lw-11866 (#1558)
1 parent 111dbd8 commit 952625f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export const CreateWalletProvider = ({ children }: Props): React.ReactElement =>
118118
if (recoveryMethod === 'mnemonic') {
119119
await finalizeWalletCreation(state);
120120
history.push(walletRoutePaths.assets);
121+
window.location.reload();
121122
break;
122123
}
123124
setStep(WalletCreateStep.SavePaperWallet);
@@ -127,6 +128,7 @@ export const CreateWalletProvider = ({ children }: Props): React.ReactElement =>
127128
if (!state.name) throw new Error('Expected name');
128129
await finalizeWalletCreation(state);
129130
history.push(walletRoutePaths.assets);
131+
window.location.reload();
130132
break;
131133
}
132134
}

apps/browser-extension-wallet/src/views/browser-view/features/multi-wallet/restore-wallet/context.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ export const RestoreWalletProvider = ({ children }: Props): React.ReactElement =
153153
break;
154154
case WalletRestoreStep.Setup:
155155
history.push(walletRoutePaths.assets);
156+
window.location.reload();
156157
break;
157158
}
158159
}, [history, step, recoveryMethod]);

apps/browser-extension-wallet/src/views/browser-view/features/settings/components/SettingsSecurity.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ export const SettingsSecurity = ({
6767
setHideShowPassphraseSetting(isWalletLocked() || !isInMemoryWallet);
6868
}, [isInMemoryWallet, isWalletLocked]);
6969

70-
const handleCloseShowPassphraseDrawer = () => {
70+
const handleCloseShowPassphraseDrawer = async () => {
7171
setIsShowPassphraseDrawerOpen(false);
72-
analytics.sendEventToPostHog(PostHogAction.SettingsShowRecoveryPhraseYourRecoveryPhraseXClick);
72+
await analytics.sendEventToPostHog(PostHogAction.SettingsShowRecoveryPhraseYourRecoveryPhraseXClick);
73+
window.location.reload();
7374
};
7475

7576
const handleOpenShowPassphraseDrawer = () => {

0 commit comments

Comments
 (0)