Fix block conditions

This commit is contained in:
Alex P. 2024-10-19 11:21:26 +03:00
parent 74b560c33c
commit 18bd00c697
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -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 } }