fix: execution of small functions

This commit is contained in:
RadoslavDimchev 2023-10-08 10:45:57 +03:00
parent ac167376d9
commit 109fca4aa7
1 changed files with 2 additions and 5 deletions

View File

@ -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 = () => {