diff --git a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx index 0c41651d..48a7cde0 100644 --- a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx @@ -33,11 +33,12 @@ const ValidatorOnboarding = () => { const changeActiveStep = (step: number) => { setActiveStep(step) removeCopyPastePhraseInfoBox() + removeConfirmPhraseStage() } const continueHandler = () => { if (activeStep === 4 && isConfirmPhraseStage === false) { - setIsConfirmPhraseStage(true) + return setIsConfirmPhraseStage(true) } else if (activeStep === 3 && subStepValidatorSetup < 3) { setSubStepValidatorSetup(subStepValidatorSetup + 1) } else if (activeStep < 5) { @@ -49,6 +50,7 @@ const ValidatorOnboarding = () => { navigate('/') } removeCopyPastePhraseInfoBox() + removeConfirmPhraseStage() } const removeCopyPastePhraseInfoBox = () => { @@ -57,6 +59,12 @@ const ValidatorOnboarding = () => { } } + const removeConfirmPhraseStage = () => { + if (isConfirmPhraseStage) { + setIsConfirmPhraseStage(false) + } + } + return (