@capillarytech/cap-ui-utils 1.4.19 → 1.4.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capillarytech/cap-ui-utils",
3
- "version": "1.4.19",
3
+ "version": "1.4.20",
4
4
  "description": "Utility functions shared accross all the modules",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -124,7 +124,7 @@ export const getUserLocale = (currentOrgDetails) => {
124
124
 
125
125
  function localeBasedNumberFormatting(value, currentOrgDetails = {}) {
126
126
  const userLocale = getUserLocale(currentOrgDetails);
127
- const formattedValue = new Intl.NumberFormat(locale, {
127
+ const formattedValue = new Intl.NumberFormat(userLocale, {
128
128
  maximumFractionDigits: 2,
129
129
  }).format(value);
130
130
  return formattedValue;