mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-20 15:18:33 +00:00
fix(continue-button): validating words
fix jumping to deposit page without validating recovery phrase
This commit is contained in:
parent
91bbd66755
commit
fff3f901d4
@ -121,11 +121,10 @@ const ContinueButton = () => {
|
||||
const continueHandler = () => {
|
||||
let nextPath = STEPPER_PATHS[activeStep + 1] || ''
|
||||
|
||||
if (activeStep === 7) {
|
||||
nextPath = isConfirmPhraseStage
|
||||
? `${PATHS.VALIDATOR_ONBOARDING}/${VALIDATOR_ONBOARDING_SUB_PATHS.DEPOSIT}`
|
||||
: `${PATHS.VALIDATOR_ONBOARDING}/${VALIDATOR_ONBOARDING_SUB_PATHS.RECOVERY_PHRASE}`
|
||||
handleRecoveryMechanism()
|
||||
if (activeStep === 7 && !isConfirmPhraseStage) {
|
||||
return handleRecoveryMechanism()
|
||||
} else if (activeStep === 7 && isConfirmPhraseStage) {
|
||||
nextPath = `${PATHS.VALIDATOR_ONBOARDING}/${VALIDATOR_ONBOARDING_SUB_PATHS.DEPOSIT}`
|
||||
} else if (activeStep === 8) {
|
||||
nextPath = `${PATHS.VALIDATOR_ONBOARDING}/${VALIDATOR_ONBOARDING_SUB_PATHS.ACTIVATION}`
|
||||
} else if (activeStep === 9) {
|
||||
@ -133,6 +132,7 @@ const ContinueButton = () => {
|
||||
}
|
||||
navigate(nextPath)
|
||||
}
|
||||
|
||||
return (
|
||||
<YStack style={{ width: '100%' }}>
|
||||
{windowSize.width < 1155 && (
|
||||
|
Loading…
x
Reference in New Issue
Block a user