Fix the disabled tracking checkbox condition

This commit is contained in:
Narek Zakarian 2022-10-10 17:11:38 +04:00
parent dade07ca95
commit 968b081534
3 changed files with 16 additions and 16 deletions

View file

@ -51,7 +51,7 @@ class OrderTrackingModule implements ModuleInterface {
$pui_helper = $c->get( 'wcgateway.pay-upon-invoice-helper' );
assert( $pui_helper instanceof PayUponInvoiceHelper );
if ( $pui_helper->is_pui_enabled() ) {
if ( $pui_helper->is_pui_gateway_enabled() ) {
$settings->set( 'tracking_enabled', true );
$settings->persist();
}