Skip to content

Commit 515096a

Browse files
authored
Merge pull request #265 from elagasteratou/master
Bug fix: Incorrect step indicator if initialStepState is provided
2 parents 9e3b5c9 + 83f826a commit 515096a

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)