Skip to content

Commit

Permalink
fix: lw-11866 (#1558)
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslaw-wlodek authored Nov 28, 2024
1 parent 111dbd8 commit 952625f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const CreateWalletProvider = ({ children }: Props): React.ReactElement =>
if (recoveryMethod === 'mnemonic') {
await finalizeWalletCreation(state);
history.push(walletRoutePaths.assets);
window.location.reload();
break;
}
setStep(WalletCreateStep.SavePaperWallet);
Expand All @@ -127,6 +128,7 @@ export const CreateWalletProvider = ({ children }: Props): React.ReactElement =>
if (!state.name) throw new Error('Expected name');
await finalizeWalletCreation(state);
history.push(walletRoutePaths.assets);
window.location.reload();
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const RestoreWalletProvider = ({ children }: Props): React.ReactElement =
break;
case WalletRestoreStep.Setup:
history.push(walletRoutePaths.assets);
window.location.reload();
break;
}
}, [history, step, recoveryMethod]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ export const SettingsSecurity = ({
setHideShowPassphraseSetting(isWalletLocked() || !isInMemoryWallet);
}, [isInMemoryWallet, isWalletLocked]);

const handleCloseShowPassphraseDrawer = () => {
const handleCloseShowPassphraseDrawer = async () => {
setIsShowPassphraseDrawerOpen(false);
analytics.sendEventToPostHog(PostHogAction.SettingsShowRecoveryPhraseYourRecoveryPhraseXClick);
await analytics.sendEventToPostHog(PostHogAction.SettingsShowRecoveryPhraseYourRecoveryPhraseXClick);
window.location.reload();
};

const handleOpenShowPassphraseDrawer = () => {
Expand Down

0 comments on commit 952625f

Please sign in to comment.