Skip to content

Commit 83f826a

Browse files
author
Michaela Gasteratou
committed
Bug fix: Incorrect step indicator if initialStepState is provided
1 parent 9e3b5c9 commit 83f826a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/steps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ export const stepIndexToStepType = (stepIndex: number) => {
2222

2323
export const stepTypeToStepIndex = (type?: StepType) => {
2424
const step = StepTypeToStepRecord[type || StepType.upload]
25-
return Math.min(0, steps.indexOf(step))
25+
return Math.max(0, steps.indexOf(step))
2626
}

0 commit comments

Comments
 (0)