We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e3b5c9 + 83f826a commit 515096aCopy full SHA for 515096a
src/utils/steps.ts
@@ -22,5 +22,5 @@ export const stepIndexToStepType = (stepIndex: number) => {
22
23
export const stepTypeToStepIndex = (type?: StepType) => {
24
const step = StepTypeToStepRecord[type || StepType.upload]
25
- return Math.min(0, steps.indexOf(step))
+ return Math.max(0, steps.indexOf(step))
26
}
0 commit comments