diff --git a/src/pages/ValidatorOnboarding/ContinueButton.tsx b/src/pages/ValidatorOnboarding/ContinueButton.tsx index 18c79176..4a4ef7f3 100644 --- a/src/pages/ValidatorOnboarding/ContinueButton.tsx +++ b/src/pages/ValidatorOnboarding/ContinueButton.tsx @@ -41,7 +41,10 @@ const ContinueButton = () => { useEffect(() => { const getDisabledButton = () => { if (activeStep === 4 && isConfirmPhraseStage) { - if (validWords.some(w => w === false)) { + if ( + validWords.some(w => w === false) || + generatedMnemonic.some((w, i) => w !== mnemonic[i]) + ) { return true } } else if (activeStep === 3 && !isValidatorSet) { @@ -68,12 +71,14 @@ const ContinueButton = () => { dispatch(setActiveStep(activeStep + 1)) } } + const handleStep2 = () => { if (subStepValidatorSetup === 3) { return dispatch(setActiveStep(activeStep + 1)) } dispatch(setSubStepValidatorSetup(subStepValidatorSetup + 1)) } + const handleStep4 = () => { if (!isConfirmPhraseStage && recoveryMechanism === KEYSTORE_FILES) { return dispatch(setActiveStep(activeStep + 1))