Skip to content

fix(checkout): prevent duplicate order creation on double-click#714

Merged
dylandepass merged 2 commits into
staginguatfrom
fix-checkout-double-order
Jul 15, 2026
Merged

fix(checkout): prevent duplicate order creation on double-click#714
dylandepass merged 2 commits into
staginguatfrom
fix-checkout-double-order

Conversation

@dylandepass

Copy link
Copy Markdown
Contributor

Move button disable + loading state to before any async work in the Chase credit card submit handler. Previously the button stayed enabled through address validation and estimate token refresh awaits, allowing a second click to trigger a concurrent createOrder call. All error/early-return paths now restore the button.

Test URLs:

Move button disable + loading state to before any async work in the Chase credit card submit handler. Previously the button stayed enabled through address validation and estimate token refresh awaits, allowing a second click to trigger a concurrent createOrder call. All error/early-return paths now restore the button.
@aem-code-sync

aem-code-sync Bot commented Jul 15, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run all PSI checks
  • Re-run failed PSI checks
  • Re-sync branch
Commits

@aem-code-sync

aem-code-sync Bot commented Jul 15, 2026

Copy link
Copy Markdown
Page Scores Audits Google
📱 / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

The pageshow handler already reset disabled and button text but did not remove the is-loading class, leaving the spinner visible when navigating back from the hosted payment page.
@dylandepass
dylandepass merged commit a91c4ad into staginguat Jul 15, 2026
2 checks passed
@dylandepass
dylandepass deleted the fix-checkout-double-order branch July 15, 2026 19:14
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.

1 participant