@barchart/portfolio-api-common 1.2.59 → 1.2.60

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.
@@ -420,7 +420,7 @@ module.exports = (() => {
420
420
  } else if (data.previousPrice) {
421
421
  priceToUse = new Decimal(data.previousPrice);
422
422
  } else if (!currentSummary.end.open.getIsZero()) {
423
- priceToUse = currentSummary.end.value.divide(summary.end.open);
423
+ priceToUse = currentSummary.end.value.divide(currentSummary.end.open);
424
424
  } else {
425
425
  priceToUse = null;
426
426
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.2.59",
3
+ "version": "1.2.60",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -3556,7 +3556,7 @@ module.exports = (() => {
3556
3556
  } else if (data.previousPrice) {
3557
3557
  priceToUse = new Decimal(data.previousPrice);
3558
3558
  } else if (!currentSummary.end.open.getIsZero()) {
3559
- priceToUse = currentSummary.end.value.divide(summary.end.open);
3559
+ priceToUse = currentSummary.end.value.divide(currentSummary.end.open);
3560
3560
  } else {
3561
3561
  priceToUse = null;
3562
3562
  }