Checkout button crashes on click
openRoot cause
`total` is undefined when the cart is empty — `.toFixed()` throws.
src/checkout.js
- const price = total.toFixed(2);
+ const price = (total ?? 0).toFixed(2);
Merge it and the report is marked resolved automatically.
Free plan included · no credit card required
Get your embed code in under a minute