Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Checkout button can be pressed multiple times after cart refresh #90

Open
MinijusS opened this issue Feb 8, 2024 · 0 comments
Open

Comments

@MinijusS
Copy link

MinijusS commented Feb 8, 2024

What happened?

When updating the cart in any way (by removing the item, adding another item, or changing the payment method) the .checkout-btn "disabled" prop doesn't work anymore. So the user can click many times on the button and it will create separate orders until he is redirected to the success page. Happened a few times already, and I cannot find the solution. It works properly on page load, but after refreshCart it stops working...

What did you expect to happen?

On cart refresh, the checkout button should always work, it should become disabled on Checkout button click. So that the user wouldn't send multiple orders.

Version

3.x

What browser are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Relevant log output

No response

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

No branches or pull requests

1 participant