You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
When the <CoinbaseCommerceButton> component is instantiated (and the modal opens up), the component fails to render if the onModalClosed property is set.
According to the documentation here, onModalClosed is a valid property, however, the component doesn't look like it has the code in place to recognize it.
Here's what my code looks like:
<CoinbaseCommerceButtonclassName={styles.coinbaseBuyNow}onPaymentDetected={processCoinbaseEvent}onChargeFailure={processCoinbaseEvent}onChargeSuccess={processCoinbaseEvent}onModalClose={processModalClose}// this failschargeId={coinbaseChargeId}>BuyNow</CoinbaseCommerceButton>
I tried both onModalClosed and onModalClose and I got the same error:
Hello.
When the
<CoinbaseCommerceButton>component is instantiated (and the modal opens up), the component fails to render if theonModalClosedproperty is set.According to the documentation here,
onModalClosedis a valid property, however, the component doesn't look like it has the code in place to recognize it.Here's what my code looks like:
I tried both
onModalClosedandonModalCloseand I got the same error: