mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix buttons loading in block editor
This commit is contained in:
parent
fc1b5e9a1e
commit
40e4658576
1 changed files with 1 additions and 1 deletions
|
@ -606,7 +606,7 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages
|
||||||
case 'product':
|
case 'product':
|
||||||
return $smart_button_enabled_for_current_location || $smart_button_enabled_for_mini_cart;
|
return $smart_button_enabled_for_current_location || $smart_button_enabled_for_mini_cart;
|
||||||
default:
|
default:
|
||||||
return $smart_button_enabled_for_mini_cart;
|
return $smart_button_enabled_for_mini_cart || $this->is_block_editor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue