fix jumping to not yet active steps

This commit is contained in:
Hristo Nedelkov 2023-10-06 12:55:10 +03:00
parent eab4eb221e
commit 65656fff21
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ const ValidatorOnboarding = () => {
const dispatch = useDispatch()
const changeActiveStep = (step: number) => {
setActiveStep(step)
if (step < activeStep) {
return setActiveStep(step)
}
removeCopyPastePhraseInfoBox()
removeConfirmPhraseStage()
}