Skip to content

Commit ab2f3de

Browse files
author
Tobias Westfeld
authored
#758: Cart applied_taxes of empty cart can be null
1 parent f77ac3c commit ab2f3de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/CartPrices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private function getAppliedTaxes(Total $total, string $currency): array
7373
$appliedTaxesData = [];
7474
$appliedTaxes = $total->getAppliedTaxes();
7575

76-
if (count($appliedTaxes) === 0) {
76+
if ($appliedTaxes === null || count($appliedTaxes) === 0) {
7777
return $appliedTaxesData;
7878
}
7979

0 commit comments

Comments
 (0)