@ceed/cds 1.31.2 → 1.32.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2184,7 +2184,7 @@ var useCurrencySetting = (props) => {
2184
2184
  const symbol = parts.find((p) => p.type === "currency")?.value ?? "$";
2185
2185
  const thousandSeparator = parts.find((p) => p.type === "group")?.value ?? ",";
2186
2186
  const decimalSeparator = parts.find((p) => p.type === "decimal")?.value;
2187
- const decimalScale = CURRENCY_DECIMAL_MAP[currency];
2187
+ const decimalScale = CURRENCY_DECIMAL_MAP[currency.toUpperCase()];
2188
2188
  return {
2189
2189
  symbol: `${symbol} `,
2190
2190
  thousandSeparator,
package/dist/index.js CHANGED
@@ -2050,7 +2050,7 @@ var useCurrencySetting = (props) => {
2050
2050
  const symbol = parts.find((p) => p.type === "currency")?.value ?? "$";
2051
2051
  const thousandSeparator = parts.find((p) => p.type === "group")?.value ?? ",";
2052
2052
  const decimalSeparator = parts.find((p) => p.type === "decimal")?.value;
2053
- const decimalScale = CURRENCY_DECIMAL_MAP[currency];
2053
+ const decimalScale = CURRENCY_DECIMAL_MAP[currency.toUpperCase()];
2054
2054
  return {
2055
2055
  symbol: `${symbol} `,
2056
2056
  thousandSeparator,