@trafilea/afrodita-components 6.54.9 → 6.54.10

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/build/index.js CHANGED
@@ -3157,6 +3157,12 @@ var formatPrice = function (value, _a) {
3157
3157
  var resultOverridden = "S$".concat(onlyValue);
3158
3158
  return resultOverridden;
3159
3159
  }
3160
+ if (['DKK', 'NOK', 'SEK'].includes(currency)) {
3161
+ // intlFormat does not support Denmark, Norway and Sweden currency
3162
+ var onlyValue = result.slice(result.indexOf(currency) + 4);
3163
+ var resultOverridden = "kr".concat(onlyValue);
3164
+ return resultOverridden;
3165
+ }
3160
3166
  return result;
3161
3167
  };
3162
3168