gt-react 4.2.2 → 4.2.3

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.
@@ -46,8 +46,8 @@ function Currency(_a) {
46
46
  var renderedValue = (typeof children !== 'undefined' && typeof value === 'undefined') ? children : value;
47
47
  renderedValue = (typeof renderedValue === 'string') ? parseFloat(renderedValue) : renderedValue;
48
48
  // Format the value using Intl.NumberFormat
49
- if (typeof value === 'number') {
50
- renderedValue = (0, generaltranslation_1.formatCurrency)({ value: value, languages: locales, currency: currency, options: options });
49
+ if (typeof renderedValue === 'number') {
50
+ renderedValue = (0, generaltranslation_1.formatCurrency)({ value: renderedValue, languages: locales, currency: currency, options: options });
51
51
  }
52
52
  return ((0, jsx_runtime_1.jsx)("span", { "data-gt-variable-name": name, "data-gt-variable-type": "currency", "data-gt-variable-options": __assign({ style: 'currency', currency: currency }, options), children: renderedValue }));
53
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/variables/Currency.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;;;;;;;;;;;;;;;AAEZ,yDAAoD;AACpD,iEAA2C;AAC3C,+EAAyD;AAEzD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAS,QAAQ,CAAC,EAME;QANF,qBAMd,EAAE,IAAI,EAAE,MAAM,EAAE,KAAA,EANA,QAAQ,cAAA,EAAE,YAAa,EAAb,IAAI,mBAAG,MAAM,KAAA,EAAE,KAAK,WAAA,EAAE,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA;IAQ9E,IAAM,OAAO,GAAG,CAAC,IAAA,mBAAS,GAAE,EAAE,IAAA,0BAAgB,GAAE,CAAC,CAAA;IAEjD,IAAI,aAAa,GAAG,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,C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