Skip to content

Commit

Permalink
NTR: Cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Oct 2, 2024
1 parent 7929cc8 commit 9b17552
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Service/CartService.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ public function updateCountry(SalesChannelContext $context, string $countryID):
SalesChannelContextService::COUNTRY_ID => $countryID
];
$customer = $context->getCustomer();

if ($customer instanceof CustomerEntity) {
$applePayAddressId = $this->shippingAddressFaker->createFakeShippingAddress($countryID, $customer, $context->getContext());

$dataBagData[SalesChannelContextService::SHIPPING_ADDRESS_ID] = $applePayAddressId;
}

$dataBag->add($dataBagData);

$this->contextSwitcher->update($dataBag, $context);
Expand Down

0 comments on commit 9b17552

Please sign in to comment.