react-coinbase-commerce icon indicating copy to clipboard operation
react-coinbase-commerce copied to clipboard

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

Open rahulgi opened this issue 4 years ago • 0 comments

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

rahulgi avatar Feb 10 '21 00:02 rahulgi