fix jumping to not yet active steps
This commit is contained in:
parent
eab4eb221e
commit
65656fff21
|
@ -33,7 +33,10 @@ const ValidatorOnboarding = () => {
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
|
|
||||||
const changeActiveStep = (step: number) => {
|
const changeActiveStep = (step: number) => {
|
||||||
setActiveStep(step)
|
if (step < activeStep) {
|
||||||
|
return setActiveStep(step)
|
||||||
|
}
|
||||||
|
|
||||||
removeCopyPastePhraseInfoBox()
|
removeCopyPastePhraseInfoBox()
|
||||||
removeConfirmPhraseStage()
|
removeConfirmPhraseStage()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue