Remove unused

This commit is contained in:
Alex P. 2024-10-21 17:34:41 +03:00
parent 18bd00c697
commit 9b270e5696
No known key found for this signature in database
GPG key ID: 54487A734A204D71
2 changed files with 1 additions and 3 deletions

View file

@ -740,7 +740,7 @@ if ( cartHasSubscriptionProducts( config.scriptData ) ) {
}
if ( block_enabled ) {
if ( (config.placeOrderEnabled || config.usePlaceOrder) && ! config.scriptData.continuation ) {
if ( config.placeOrderEnabled && ! config.scriptData.continuation ) {
let descriptionElement = (
<div
dangerouslySetInnerHTML={ { __html: config.description } }

View file

@ -267,8 +267,6 @@ class PayPalPaymentMethod extends AbstractPaymentMethodType {
'placeOrderEnabled' => $place_order_enabled,
'fundingSource' => $this->session_handler->funding_source(),
'finalReviewEnabled' => $this->final_review_enabled,
'addPlaceOrderMethod' => $this->add_place_order_method,
'usePlaceOrder' => $this->use_place_order,
'placeOrderButtonText' => $this->place_order_button_text,
'placeOrderButtonDescription' => $this->place_order_button_description,
'enabledFundingSources' => $funding_sources,