@barchart/portfolio-api-common 1.0.106 → 1.0.107

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.
@@ -84,7 +84,7 @@ module.exports = (() => {
84
84
  setQuote(quote) {
85
85
  assert.argumentIsRequired(quote, 'quote', Object);
86
86
 
87
- if (this._data.price !== price) {
87
+ if (this._previousQuote === null || this._previousQuote.lastPrice !== quote.lastPrice) {
88
88
  this._previousQuote = this._currentQuote;
89
89
  this._currentQuote = quote;
90
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.106",
3
+ "version": "1.0.107",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1464,7 +1464,7 @@ module.exports = (() => {
1464
1464
  setQuote(quote) {
1465
1465
  assert.argumentIsRequired(quote, 'quote', Object);
1466
1466
 
1467
- if (this._data.price !== price) {
1467
+ if (this._previousQuote === null || this._previousQuote.lastPrice !== quote.lastPrice) {
1468
1468
  this._previousQuote = this._currentQuote;
1469
1469
  this._currentQuote = quote;
1470
1470