@barchart/portfolio-api-common 1.0.53 → 1.0.54

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.
@@ -86,7 +86,7 @@ module.exports = (() => {
86
86
  const missingGroups = array.difference(currentDefinition.requiredGroups.map(group => group.description), populatedGroups.map(group => group.description));
87
87
 
88
88
  const empty = missingGroups.map((description) => {
89
- return new PositionGroup([ ], currentDefinition.find(group => group.description === description).currency, description);
89
+ return new PositionGroup([ ], currentDefinition.requiredGroups.find(group => group.description === description).currency, description);
90
90
  });
91
91
 
92
92
  const compositeGroups = populatedGroups.concat(empty);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -601,7 +601,7 @@ module.exports = (() => {
601
601
  const missingGroups = array.difference(currentDefinition.requiredGroups.map(group => group.description), populatedGroups.map(group => group.description));
602
602
 
603
603
  const empty = missingGroups.map((description) => {
604
- return new PositionGroup([ ], currentDefinition.find(group => group.description === description).currency, description);
604
+ return new PositionGroup([ ], currentDefinition.requiredGroups.find(group => group.description === description).currency, description);
605
605
  });
606
606
 
607
607
  const compositeGroups = populatedGroups.concat(empty);