storefront-api-examples
storefront-api-examples copied to clipboard
Update Cart.js checkout button
Previously, the checkout button was always enabled, even if there were no items in the cart. The added code conditionally renders the button as either disabled or enabled, so when there are no items in the cart it will not be able to be clicked.