feat: add valid active step value

This commit is contained in:
RadoslavDimchev 2023-09-19 16:46:38 +03:00
parent 1c347cfe22
commit d04160ab08
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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)