Skip to content

Commit b2004c3

Browse files
committed
fix NumberFormatter initialization when no currency is set
1 parent fda4377 commit b2004c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Locale/Format.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getPriceFormat($localeCode = null, $currencyCode = null)
100100
}
101101

102102
$formatter = new \NumberFormatter(
103-
$localeCode . '@currency=' . $currency->getCode(),
103+
$currency->getCode() ? $localeCode . '@currency=' . $currency->getCode() : $localeCode,
104104
\NumberFormatter::CURRENCY
105105
);
106106
$format = $formatter->getPattern();

0 commit comments

Comments
 (0)