mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Merge pull request #3195 from woocommerce/PCP-4219-security-deposits-plugin-causing-pay-pal-button-to-be-grayed-out-on-product-page
Security Deposits Plugin Causing PayPal Button to Be Grayed Out on Product Page (4219)
This commit is contained in:
commit
c527c44f6c
1 changed files with 6 additions and 0 deletions
|
@ -162,6 +162,12 @@ class SingleProductBootstap {
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
.map( ( f ) => f() )
|
.map( ( f ) => f() )
|
||||||
|
.sort((a, b) => {
|
||||||
|
if (parseInt(a.replace(/\D/g, '')) < parseInt(b.replace(/\D/g, '')) ) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
})
|
||||||
.find( ( val ) => val );
|
.find( ( val ) => val );
|
||||||
|
|
||||||
if ( typeof priceText === 'undefined' ) {
|
if ( typeof priceText === 'undefined' ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue