Skip to content

Commit a3c396b

Browse files
committed
feat/navigation
- fix onClickStep(-1)
1 parent 4b4a2f5 commit a3c396b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/steps/Steps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const Steps = () => {
3333
}
3434

3535
const onBack = () => {
36-
onClickStep(activeStep - 1)
36+
onClickStep(Math.max(activeStep - 1, 0))
3737
}
3838

3939
const onNext = (v: StepState) => {

0 commit comments

Comments
 (0)