Skip to content

Conversation

@Arsh-S
Copy link
Contributor

@Arsh-S Arsh-S commented Oct 25, 2025

This PR fixes an issue where users could create multiple duplicate orders by rapidly clicking the “Place Order” button on the buyer checkout page. The submission button now correctly enters a loading/disabled state while the order request is processing.

Closes #59

Changes

  • CheckoutForm.tsx

    • Added isSubmitting state to prevent repeated submissions.
    • Early return if a submission is already in progress.
    • Reset submission state when an error occurs.
    • Passed isSubmitting prop to the review form for button state control.
  • ReviewOrderForm.tsx

    • Disabled Back and Place Order buttons during submission.
    • Updated button label to display “Placing Order…” for better UX feedback.
Screen.Recording.2025-10-24.at.8.41.52.PM.mov

…ing button states. The CheckoutForm now manages a loading state to disable the submit button during processing, and the ReviewOrderForm reflects this state in the UI.
@Arsh-S Arsh-S linked an issue Oct 25, 2025 that may be closed by this pull request
@netlify
Copy link

netlify bot commented Oct 25, 2025

Deploy Preview for curaise ready!

Name Link
🔨 Latest commit 6e7f00b
🔍 Latest deploy log https://app.netlify.com/projects/curaise/deploys/68fc1da1f9f2cc0008dc8fb9
😎 Deploy Preview https://deploy-preview-60--curaise.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Collaborator

@stevenyuser stevenyuser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the bug and for utilizing GitHub Issues! Going forward, as per your suggestion, we will be utilizing GitHub Issues to keep track of bugs 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate Orders on Checkout Page

4 participants