mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
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:
commit
c6f95af15f
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue