From 65656fff21fcfaed47862c08295ac8077466cff1 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Fri, 6 Oct 2023 12:55:10 +0300 Subject: [PATCH] fix jumping to not yet active steps --- src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx index e8cb282d..2826d8b8 100644 --- a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx @@ -33,7 +33,10 @@ const ValidatorOnboarding = () => { const dispatch = useDispatch() const changeActiveStep = (step: number) => { - setActiveStep(step) + if (step < activeStep) { + return setActiveStep(step) + } + removeCopyPastePhraseInfoBox() removeConfirmPhraseStage() }