Skip to content

Commit fb3cdab

Browse files
ashishkumarpundeerashishkumarpundeer
authored andcommitted
AC-7550-V1::[2.4.5] Incorrect carrier/method code on selected shipping method in GraphQL
1 parent 43f78cc commit fb3cdab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/ShippingAddress/SelectedShippingMethod.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
5050
return null;
5151
}
5252

53-
/** @var Rate $rate */
53+
/**
54+
* @var Rate $rate;
55+
* @var string $carrierCode;
56+
* @var string $methodCode;
57+
*/
5458
foreach ($rates as $rate) {
5559
if ($rate->getCode() === $address->getShippingMethod()) {
5660
$carrierCode = $rate->getCarrier();

0 commit comments

Comments
 (0)