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) => {
setActiveStep(step)
removeCopyPastePhraseInfoBox()
removeConfirmPhraseStage()
}
const continueHandler = () => {
@ -47,6 +45,8 @@ const ValidatorOnboarding = () => {
if (newValidWords.every(w => w === true)) {
setActiveStep(activeStep + 1)
removeCopyPastePhraseInfoBox()
removeConfirmPhraseStage()
} else {
return
}
@ -60,9 +60,6 @@ const ValidatorOnboarding = () => {
} else {
navigate('/')
}
removeCopyPastePhraseInfoBox()
removeConfirmPhraseStage()
}
const removeCopyPastePhraseInfoBox = () => {