From dd0e02b50cbc87cd223434f9738358cf03581213 Mon Sep 17 00:00:00 2001 From: Vitaliy Boyko Date: Thu, 25 Jul 2019 21:59:22 +0300 Subject: [PATCH] graphQl-784: optimized the code --- .../Magento/QuoteGraphQl/Model/Cart/QuoteAddressFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/QuoteGraphQl/Model/Cart/QuoteAddressFactory.php b/app/code/Magento/QuoteGraphQl/Model/Cart/QuoteAddressFactory.php index 28017a1f7aca0..afc88f026ed62 100644 --- a/app/code/Magento/QuoteGraphQl/Model/Cart/QuoteAddressFactory.php +++ b/app/code/Magento/QuoteGraphQl/Model/Cart/QuoteAddressFactory.php @@ -63,8 +63,8 @@ public function createBasedOnInputData(array $addressInput): QuoteAddress $addressInput['country_id'] = ''; if ($addressInput['country_code']) { $addressInput['country_code'] = strtoupper($addressInput['country_code']); + $addressInput['country_id'] = $addressInput['country_code']; } - $addressInput['country_id'] = $addressInput['country_code']; $maxAllowedLineCount = $this->addressHelper->getStreetLines(); if (is_array($addressInput['street']) && count($addressInput['street']) > $maxAllowedLineCount) {