@barchart/portfolio-api-common 1.3.10 → 1.3.11

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.
@@ -155,14 +155,14 @@ module.exports = (() => {
155
155
  f.total = t.dividend.amount;
156
156
  f.rate = t.dividend.rate;
157
157
 
158
- f.shares = t.amount.divide(t.dividend.rate).absolute();
158
+ f.shares = t.dividend.amount.divide(t.dividend.rate);
159
159
  };
160
160
 
161
161
  const distributionCashFormatter = (t, f) => {
162
162
  f.total = t.dividend.amount;
163
163
  f.rate = t.dividend.rate;
164
164
 
165
- f.shares = t.amount.divide(t.dividend.rate).absolute();
165
+ f.shares = t.dividend.amount.divide(t.dividend.rate);
166
166
  };
167
167
 
168
168
  const dividendReinvestFormatter = (t, f) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.3.10",
3
+ "version": "1.3.11",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",