diff --git a/Observer/Model/Customer/AfterSaveObserver.php b/Observer/Model/Customer/AfterSaveObserver.php index a8ab2b8e..1508aa0c 100644 --- a/Observer/Model/Customer/AfterSaveObserver.php +++ b/Observer/Model/Customer/AfterSaveObserver.php @@ -116,7 +116,7 @@ public function execute(Observer $observer) $this->restCustomerInterface->updateCustomer($customer, null, $customer->getStoreId()); $this->cache->clean([Config::AVATAX_CACHE_TAG, Config::AVATAX_CACHE_TAG . '-' . - $this->customerHelper->getCustomerCode($customer, null, ScopeInterface::SCOPE_STORE)]); + $this->customerHelper->getCustomerCode($customer, null, $customer->getStoreId())]); } catch (AvaTaxCustomerDoesNotExistException $avaTaxCustomerDoesNotExistException) { // Ignore errors where the customer doesn't exist } catch (Exception $exception) {