mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Fix block conditions
This commit is contained in:
parent
74b560c33c
commit
18bd00c697
1 changed files with 2 additions and 5 deletions
|
@ -739,11 +739,8 @@ if ( cartHasSubscriptionProducts( config.scriptData ) ) {
|
|||
features.push( 'subscriptions' );
|
||||
}
|
||||
|
||||
if (
|
||||
block_enabled &&
|
||||
( config.smartButtonsEnabled || config.placeOrderEnabled )
|
||||
) {
|
||||
if ( config.placeOrderEnabled && ! config.scriptData.continuation ) {
|
||||
if ( block_enabled ) {
|
||||
if ( (config.placeOrderEnabled || config.usePlaceOrder) && ! config.scriptData.continuation ) {
|
||||
let descriptionElement = (
|
||||
<div
|
||||
dangerouslySetInnerHTML={ { __html: config.description } }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue