Skip to content

Commit 357b449

Browse files
committed
changes to unit tests
1 parent 8261058 commit 357b449

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Quote/Observer/Frontend/Quote/Address/CollectTotalsObserver.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ public function execute(\Magento\Framework\Event\Observer $observer)
111111
if (empty($customerCountryCode) && empty($customerVatNumber) && $customer->getDefaultShipping()) {
112112
$customerAddress = $this->addressRepository->getById($customer->getDefaultShipping());
113113

114-
$address->setCountryId($customerAddress->getCountryId());
115-
$address->setVatId($customerAddress->getVatId());
116114
$customerCountryCode = $customerAddress->getCountryId();
117115
$customerVatNumber = $customerAddress->getVatId();
116+
$address->setCountryId($customerCountryCode);
117+
$address->setVatId($customerVatNumber);
118+
118119
}
119120

120121
$groupId = null;

0 commit comments

Comments
 (0)