fix(recovery phrase): don't change phrase on back button

This commit is contained in:
Hristo Nedelkov 2024-02-13 13:13:19 +02:00 committed by Emil Ivanichkov
parent a406e0d14a
commit 8c4cb7bc6c
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@ const RecoveryPhrase = ({ isKeystoreFiles }: RecoveryPhraseProps) => {
const dispatch = useDispatch()
useEffect(() => {
getMnemonic()
if (generatedMnemonic.length === 0) {
getMnemonic()
}
}, [])
const getMnemonic = async () => {