@barchart/portfolio-api-common 1.0.128 → 1.0.129

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.
@@ -246,7 +246,7 @@ module.exports = (() => {
246
246
 
247
247
  const items = group._items;
248
248
 
249
- group._bypassCurrencyTranslation = items.some(item => item.currency !== currency);
249
+ group._bypassCurrencyTranslation = items.every(item => item.currency === currency);
250
250
 
251
251
  const translate = (item, value) => {
252
252
  let translated;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.128",
3
+ "version": "1.0.129",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1308,7 +1308,7 @@ module.exports = (() => {
1308
1308
 
1309
1309
  const items = group._items;
1310
1310
 
1311
- group._bypassCurrencyTranslation = items.some(item => item.currency !== currency);
1311
+ group._bypassCurrencyTranslation = items.every(item => item.currency === currency);
1312
1312
 
1313
1313
  const translate = (item, value) => {
1314
1314
  let translated;