Skip to content

Commit

Permalink
fix(wallet-setup): mnemonic input (#3222)
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss authored May 1, 2024
1 parent e69fcc3 commit 44c0141
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<View>
Expand All @@ -57,7 +57,7 @@ export const MnemonicInput = ({

<Space height="l" />

{!isEmptyString(error) && isMnemonicCompleted && (
{!isEmptyString(error) && (
<View style={styles.textView}>
<AlertIllustration />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const RestoreWalletScreen = () => {

if (mnemonicWordsComplete && !isValid) {
setIsValidPhrase(false)
setMnemonic(newWords.join(' '))
track.restoreWalletEnterPhraseStepStatus({recovery_prhase_status: false})

return
Expand Down

0 comments on commit 44c0141

Please sign in to comment.