mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Fix the Smart Buttons in Block Checkout not respecting the location setting (2830)
This commit is contained in:
parent
cb74a719fc
commit
653a99a242
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