From ff25a6e309d94b2ec99dbfafb8acc734dc9da638 Mon Sep 17 00:00:00 2001 From: jan-potuznik-z <79142524+jan-potuznik-z@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:09:49 +0200 Subject: [PATCH] PES-2118: ShippingMethod fix (#567) --- src/Packetery/Module/ShippingMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Packetery/Module/ShippingMethod.php b/src/Packetery/Module/ShippingMethod.php index 6c4112989..2c0e814d0 100644 --- a/src/Packetery/Module/ShippingMethod.php +++ b/src/Packetery/Module/ShippingMethod.php @@ -166,7 +166,7 @@ public function calculate_shipping( $package = [] ): void { * @return array */ public function get_instance_form_fields(): array { - if ( ! $this->wcCarrierSettingsConfig->isActive() ) { + if ( ! $this->optionsProvider->isWcCarrierConfigEnabled() ) { return []; }