mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-27 10:30:31 +00:00
fix: continue button to work with Recovery Mechanism
This commit is contained in:
parent
289f142b4b
commit
c63d27528c
@ -79,12 +79,10 @@ const ContinueButton = () => {
|
|||||||
isValidatorSet,
|
isValidatorSet,
|
||||||
])
|
])
|
||||||
|
|
||||||
//FIX: move this function out of the component
|
const handleRecoveryMechanism = () => {
|
||||||
const handleStep4 = () => {
|
|
||||||
if (!isConfirmPhraseStage && recoveryMechanism === KEYSTORE_FILES) {
|
if (!isConfirmPhraseStage && recoveryMechanism === KEYSTORE_FILES) {
|
||||||
return dispatch(setActiveStep(activeStep + 1))
|
return dispatch(setActiveStep(activeStep + 1))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isConfirmPhraseStage) {
|
if (!isConfirmPhraseStage) {
|
||||||
return dispatch(setIsConfirmPhraseStage(true))
|
return dispatch(setIsConfirmPhraseStage(true))
|
||||||
}
|
}
|
||||||
@ -109,10 +107,18 @@ const ContinueButton = () => {
|
|||||||
else if (activeStep === 2) nextPath = '/validator-onboarding/validator-setup-install'
|
else if (activeStep === 2) nextPath = '/validator-onboarding/validator-setup-install'
|
||||||
else if (activeStep === 3) nextPath = '/validator-onboarding/consensus-selection'
|
else if (activeStep === 3) nextPath = '/validator-onboarding/consensus-selection'
|
||||||
else if (activeStep === 4) nextPath = '/validator-onboarding/activation-validator-setup'
|
else if (activeStep === 4) nextPath = '/validator-onboarding/activation-validator-setup'
|
||||||
else if (activeStep === 5) nextPath = '/validator-onboarding/client-setup'
|
else if (activeStep === 5) {
|
||||||
else if (activeStep === 6) nextPath = '/validator-onboarding/key-generation'
|
nextPath = '/validator-onboarding/client-setup'
|
||||||
else if (activeStep === 7) nextPath = '/validator-onboarding/deposit'
|
} else if (activeStep === 6) {
|
||||||
else if (activeStep === 8) nextPath = '/validator-onboarding/activation'
|
nextPath = '/validator-onboarding/key-generation'
|
||||||
|
} else if (activeStep === 7) {
|
||||||
|
if (isConfirmPhraseStage) {
|
||||||
|
nextPath = '/validator-onboarding/deposit'
|
||||||
|
} else {
|
||||||
|
nextPath = '/validator-onboarding/key-generation'
|
||||||
|
}
|
||||||
|
handleRecoveryMechanism()
|
||||||
|
} else if (activeStep === 8) nextPath = '/validator-onboarding/activation'
|
||||||
else if (activeStep === 9) nextPath = '/dashboard'
|
else if (activeStep === 9) nextPath = '/dashboard'
|
||||||
else nextPath = '/validator-onboarding/'
|
else nextPath = '/validator-onboarding/'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user