fix error handling fro tracking endpoint

This commit is contained in:
Narek Zakarian 2022-08-11 17:57:18 +04:00
parent a4cb280fe3
commit afc2d31852
2 changed files with 14 additions and 7 deletions

View file

@ -112,7 +112,7 @@ class OrderTrackingModule implements ModuleInterface {
static function( int $order_id ) use ( $endpoint, $logger ) {
$tracking_information = $endpoint->get_tracking_information( $order_id );
if ( ! empty( $tracking_information ) ) {
if ( $tracking_information ) {
return;
}