diff --git a/Model/Observer/AddressFormat.php b/Model/Observer/AddressFormat.php index 0a47171..edd6c79 100644 --- a/Model/Observer/AddressFormat.php +++ b/Model/Observer/AddressFormat.php @@ -45,7 +45,7 @@ public function execute(\Magento\Framework\Event\Observer $observer) $regionId = $address->getRegionId(); /** @var \Magento\Directory\Model\Region $region */ $region = $this->regionFactory->create(); - $region->loadByCode($region, $regionId); + $region->loadByCode($address->getRegion(), $regionId); $address->setRegion($region->getName()); $address->setRegionCode($region->getCode()); $address->save();