Skip to content

Commit

Permalink
Merge pull request #6 from camin-mccluskey/remove-log-hit-stepper
Browse files Browse the repository at this point in the history
Remove hit stepper comment line
  • Loading branch information
camin-mccluskey authored Oct 31, 2023
2 parents 92a534d + 2df2d2b commit ebcc290
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 ebcc290

Please sign in to comment.