Skip to content

Commit

Permalink
fix(app-rfi): use submitCount to prevent dupes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsamuelson committed Oct 3, 2024
1 parent 80bb2f8 commit 09274ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-rfi/src/components/stepper/RfiStepperButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const RfiStepperButtons = ({
totalSteps,
step,
handleBack,
formik: { isSubmitting },
formik: { submitCount },
}) => {
return (
<>
Expand Down Expand Up @@ -83,7 +83,7 @@ export const RfiStepperButtons = ({
<Button
type="submit"
className="rfi-submit btn btn-primary"
disabled={!!isSubmitting}
disabled={submitCount > 0}
onClick={() =>
trackGAEvent({
action: "click",
Expand Down

0 comments on commit 09274ae

Please sign in to comment.