From 44c01410194cd0ef34627a09548c61e78adf1192 Mon Sep 17 00:00:00 2001 From: banklesss <105349292+banklesss@users.noreply.github.com> Date: Wed, 1 May 2024 10:15:11 +0200 Subject: [PATCH] fix(wallet-setup): mnemonic input (#3222) --- .../SetupWallet/common/MnemonicInput/MnemonicInput.tsx | 4 ++-- .../useCases/RestoreWallet/RestoreWalletScreen.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/wallet-mobile/src/features/SetupWallet/common/MnemonicInput/MnemonicInput.tsx b/apps/wallet-mobile/src/features/SetupWallet/common/MnemonicInput/MnemonicInput.tsx index 79ebad10e2..ace542d2c3 100644 --- a/apps/wallet-mobile/src/features/SetupWallet/common/MnemonicInput/MnemonicInput.tsx +++ b/apps/wallet-mobile/src/features/SetupWallet/common/MnemonicInput/MnemonicInput.tsx @@ -41,7 +41,7 @@ export const MnemonicInput = ({ const {styles} = useStyles() const isMnemonicCompleted = !isEmptyString(mnemonic) - const error = isMnemonicCompleted && !isValidPhrase ? strings.invalidChecksum : '' + const error = !isValidPhrase && isMnemonicCompleted ? strings.invalidChecksum : '' return ( @@ -57,7 +57,7 @@ export const MnemonicInput = ({ - {!isEmptyString(error) && isMnemonicCompleted && ( + {!isEmptyString(error) && ( diff --git a/apps/wallet-mobile/src/features/SetupWallet/useCases/RestoreWallet/RestoreWalletScreen.tsx b/apps/wallet-mobile/src/features/SetupWallet/useCases/RestoreWallet/RestoreWalletScreen.tsx index 1a1d2bfcee..b41753fb89 100644 --- a/apps/wallet-mobile/src/features/SetupWallet/useCases/RestoreWallet/RestoreWalletScreen.tsx +++ b/apps/wallet-mobile/src/features/SetupWallet/useCases/RestoreWallet/RestoreWalletScreen.tsx @@ -80,6 +80,7 @@ export const RestoreWalletScreen = () => { if (mnemonicWordsComplete && !isValid) { setIsValidPhrase(false) + setMnemonic(newWords.join(' ')) track.restoreWalletEnterPhraseStepStatus({recovery_prhase_status: false}) return