@barchart/portfolio-api-common 1.3.13 → 1.3.14

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.
@@ -997,7 +997,7 @@ module.exports = (() => {
997
997
  const format = group._dataFormat;
998
998
 
999
999
  const numerator = actual.unrealized;
1000
- const denominator = actual.basis;
1000
+ const denominator = actual.basis.absolute();
1001
1001
 
1002
1002
  if (denominator.getIsZero()) {
1003
1003
  actual.unrealizedPercent = Decimal.ZERO;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.3.13",
3
+ "version": "1.3.14",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -3565,7 +3565,7 @@ module.exports = (() => {
3565
3565
  const format = group._dataFormat;
3566
3566
 
3567
3567
  const numerator = actual.unrealized;
3568
- const denominator = actual.basis;
3568
+ const denominator = actual.basis.absolute();
3569
3569
 
3570
3570
  if (denominator.getIsZero()) {
3571
3571
  actual.unrealizedPercent = Decimal.ZERO;