Skip to content

Commit dd0e02b

Browse files
author
Vitaliy Boyko
committed
graphQl-784: optimized the code
1 parent 0394956 commit dd0e02b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/QuoteAddressFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public function createBasedOnInputData(array $addressInput): QuoteAddress
6363
$addressInput['country_id'] = '';
6464
if ($addressInput['country_code']) {
6565
$addressInput['country_code'] = strtoupper($addressInput['country_code']);
66+
$addressInput['country_id'] = $addressInput['country_code'];
6667
}
67-
$addressInput['country_id'] = $addressInput['country_code'];
6868

6969
$maxAllowedLineCount = $this->addressHelper->getStreetLines();
7070
if (is_array($addressInput['street']) && count($addressInput['street']) > $maxAllowedLineCount) {

0 commit comments

Comments
 (0)