@designcrowd/fe-shared-lib 1.2.17-ml-currency → 1.2.17-ml-currency-2

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/Dockerfile CHANGED
@@ -29,7 +29,7 @@ COPY .npmignore ./
29
29
  RUN npm run bundle-translation
30
30
 
31
31
  RUN mkdir artifacts
32
- RUN npm publish --otp=171115 || (touch artifacts/npm_publish_failed && exit 1)
32
+ RUN npm publish --otp=752654 || (touch artifacts/npm_publish_failed && exit 1)
33
33
  RUN cp package.json artifacts/
34
34
 
35
35
  ENTRYPOINT ["/bin/echo", "Nothing to do."]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.17-ml-currency",
3
+ "version": "1.2.17-ml-currency-2",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -84,12 +84,12 @@ const formatCurrency = (amount, locale, currency, fraction = 0, showAbbreviation
84
84
 
85
85
  // show abbreviation locale logic
86
86
  // note: showAbbreviaton is only passed as true for symbol = "$"
87
- if (currency.symbol != '$') {
87
+ if (currency.symbol.trim() !== '$') {
88
88
  return localeAmount;
89
89
  }
90
90
 
91
91
  // AUD edge case for en_US
92
- if (currency.iso4127Code == 'AUD') {
92
+ if (currency.iso4127Code === 'AUD') {
93
93
  localeAmount = localeAmount.replace('A$', currency.symbol);
94
94
  }
95
95