From 8c4cb7bc6cee5a026f28c9d9e827e5895531f2c6 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Tue, 13 Feb 2024 13:13:19 +0200 Subject: [PATCH] fix(recovery phrase): don't change phrase on back button --- .../ValidatorOnboarding/KeyGeneration/RecoveryPhrase.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryPhrase.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryPhrase.tsx index fd98dd72..8cc4f723 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryPhrase.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryPhrase.tsx @@ -24,7 +24,9 @@ const RecoveryPhrase = ({ isKeystoreFiles }: RecoveryPhraseProps) => { const dispatch = useDispatch() useEffect(() => { - getMnemonic() + if (generatedMnemonic.length === 0) { + getMnemonic() + } }, []) const getMnemonic = async () => {