Merge pull request #3618 from woocommerce/PCP-2903-proceed-to-pay-pal-button-label-not-reverted-to-place-order-on-block-checkout-page-after-applying-100-coupon

Fix 'Proceed to PayPal' button label not reverted on block checkout when totals are 0 (2903)
This commit is contained in:
Emili Castells 2025-08-28 16:58:25 +02:00 committed by GitHub
commit c6f95af15f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,8 +103,9 @@ if ( blockEnabled ) {
edit: descriptionElement,
placeOrderButtonLabel: config.placeOrderButtonText,
ariaLabel: config.title,
canMakePayment: () => {
return true;
canMakePayment: ( cartData ) => {
const total = cartData?.cartTotals?.total_price;
return parseInt( total ) > 0;
},
supports: {
features,