feat: add valid active step value
This commit is contained in:
parent
1c347cfe22
commit
d04160ab08
|
@ -69,7 +69,7 @@ const ContinueButton = ({
|
|||
}}
|
||||
>
|
||||
<Button onPress={continueHandler} size={40} disabled={isDisabled()}>
|
||||
{activeStep < 5 ? 'Continue' : 'Continue to Dashboard'}
|
||||
{activeStep < 6 ? 'Continue' : 'Continue to Dashboard'}
|
||||
</Button>
|
||||
</Stack>
|
||||
</YStack>
|
||||
|
|
|
@ -52,7 +52,7 @@ const ValidatorOnboarding = () => {
|
|||
}
|
||||
} else if (activeStep === 3 && subStepValidatorSetup < 3) {
|
||||
setSubStepValidatorSetup(subStepValidatorSetup + 1)
|
||||
} else if (activeStep < 5) {
|
||||
} else if (activeStep < 6) {
|
||||
setActiveStep(activeStep + 1)
|
||||
if (activeStep === 3 && subStepValidatorSetup === 2) {
|
||||
setSubStepValidatorSetup(0)
|
||||
|
|
Loading…
Reference in New Issue