Skip to content

Commit

Permalink
Remove hit stepper comment line
Browse files Browse the repository at this point in the history
  • Loading branch information
camin-mccluskey committed Oct 31, 2023
1 parent 92a534d commit 2df2d2b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/MultiStepForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ function MultiStepFormContent<ParentFormData extends FieldValues>({
const shouldSubmitFromStepper =
stepperSubmitFinal || newStepIndex > activeStepIndex || activeStepIndex !== numSteps - 1
if (shouldSubmitFromStepper) {
console.log('hit branch - would submit from stepper')
submitButtonRefs[0]?.meta?.stepperSubmit(newStepIndex)
}
// this is necessary (even though the above will navigate) to ensure form steps w/o submit buttons are navigated
Expand Down

0 comments on commit 2df2d2b

Please sign in to comment.