Skip to content

Commit 5cc5f42

Browse files
committed
fix: disable the caching of mnemonics
1 parent 154aece commit 5cc5f42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ui/pages/Account/CreateHDWalletScreen.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function Step1_Create({
5959
const tools = useTools();
6060

6161
const init = async () => {
62-
const _mnemonics = (await wallet.getPreMnemonics()) || (await wallet.generatePreMnemonic());
62+
const _mnemonics = await wallet.generatePreMnemonic();
6363
updateContextData({
6464
mnemonics: _mnemonics
6565
});

src/ui/pages/Main/BoostScreen.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function BoostScreen() {
4343
return;
4444
}
4545

46-
if ((await wallet.getPreMnemonics()) && !isInNotification && !isInTab) {
46+
if (!isInNotification && !isInTab) {
4747
navigate('CreateHDWalletScreen', { isImport: false });
4848
return;
4949
}

0 commit comments

Comments
 (0)