current step count (#12579)

This commit is contained in:
Rudhra Deep Biswas 2025-04-15 10:02:16 +05:30 committed by GitHub
parent 07f2e7137f
commit b24f14a1b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ const OnboardingForm = ({
<div className={iconClasses} onClick={handleBackClick} data-cy="back-button">
<LeftArow />
</div>
<span>Step {currentStep}</span> of {totalSteps}
<span>Step {currentStep == 0 ? currentStep + 1 : currentStep}</span> of {totalSteps}
</div>
<FormHeader>{title}</FormHeader>
{description && <FormDescription>{description}</FormDescription>}

View file

@ -18,7 +18,7 @@ const useCEOnboardingStore = create(
// Workspace name
workspaceName: '',
currentStep: 1,
currentStep: 0,
totalSteps: 1,
accountCreated: false,