fix: execution of small functions
This commit is contained in:
parent
ac167376d9
commit
109fca4aa7
|
@ -34,8 +34,6 @@ const ValidatorOnboarding = () => {
|
||||||
|
|
||||||
const changeActiveStep = (step: number) => {
|
const changeActiveStep = (step: number) => {
|
||||||
setActiveStep(step)
|
setActiveStep(step)
|
||||||
removeCopyPastePhraseInfoBox()
|
|
||||||
removeConfirmPhraseStage()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const continueHandler = () => {
|
const continueHandler = () => {
|
||||||
|
@ -47,6 +45,8 @@ const ValidatorOnboarding = () => {
|
||||||
|
|
||||||
if (newValidWords.every(w => w === true)) {
|
if (newValidWords.every(w => w === true)) {
|
||||||
setActiveStep(activeStep + 1)
|
setActiveStep(activeStep + 1)
|
||||||
|
removeCopyPastePhraseInfoBox()
|
||||||
|
removeConfirmPhraseStage()
|
||||||
} else {
|
} else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -60,9 +60,6 @@ const ValidatorOnboarding = () => {
|
||||||
} else {
|
} else {
|
||||||
navigate('/')
|
navigate('/')
|
||||||
}
|
}
|
||||||
|
|
||||||
removeCopyPastePhraseInfoBox()
|
|
||||||
removeConfirmPhraseStage()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeCopyPastePhraseInfoBox = () => {
|
const removeCopyPastePhraseInfoBox = () => {
|
||||||
|
|
Loading…
Reference in New Issue