Skip to content

Commit

Permalink
fix(wallet-setup): mnemonic input
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Apr 29, 2024
1 parent 5eea2a3 commit a6c6f43
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 a6c6f43

Please sign in to comment.