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

Clicking the "Close" button in the Coinbase Commerce modal navigates the page back #58

Open
rahulgi opened this issue Feb 10, 2021 · 0 comments

Comments

@rahulgi
Copy link

rahulgi commented Feb 10, 2021

I'd expect the Close button to behave like clicking the "X" in the top-right corner and just close the modal and call my onModalClosed callback, but instead it logs an error and navigates the whole page back.

The error logged is "no product state to return to", which appears in the Coinbase Commerce checkout js loaded by the modal, and which is followed by a call to goBack(). Go to https://commerce.coinbase.com/static/js/checkout.04d9aced.js and search for "no product state to return to".

I'd hazard a guess that this is actually an issue with the non-public Commerce Checkout code instead of this repo, but since I don't have access to that repo, I'm posting the issue here!

Screen Shot 2021-02-09 at 4 25 09 PM

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

No branches or pull requests

1 participant