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:
Emili Castells 2025-03-24 09:49:31 +01:00 committed by GitHub
commit c527c44f6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,6 +162,12 @@ class SingleProductBootstap {
},
]
.map( ( f ) => f() )
.sort((a, b) => {
if (parseInt(a.replace(/\D/g, '')) < parseInt(b.replace(/\D/g, '')) ) {
return 1;
}
return -1;
})
.find( ( val ) => val );
if ( typeof priceText === 'undefined' ) {