mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #2278 from woocommerce/PCP-2830-paypal-button-on-block-checkout-page-is-displayed-even-express-checkout-is-removed-from-smart-button-location
Fix the Smart Buttons in Block Checkout not respecting the location setting (2830)
This commit is contained in:
commit
44ef6e3249
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ if(cartHasSubscriptionProducts(config.scriptData)) {
|
|||
features.push('subscriptions');
|
||||
}
|
||||
|
||||
if (block_enabled) {
|
||||
if (block_enabled && config.enabled) {
|
||||
if ((config.addPlaceOrderMethod || config.usePlaceOrder) && !config.scriptData.continuation) {
|
||||
let descriptionElement = <div dangerouslySetInnerHTML={{__html: config.description}}></div>;
|
||||
if (config.placeOrderButtonDescription) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue