@barchart/portfolio-api-common 1.0.81 → 1.0.82

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.
@@ -263,12 +263,12 @@ module.exports = (() => {
263
263
 
264
264
  if (updates.marketDirection.up || updates.marketDirection.down) {
265
265
  format.marketDirection = unchanged;
266
- format.marketDirection = updates.marketDirection;
266
+ setTimeout(() => format.marketDirection = updates.marketDirection, 0);
267
267
  }
268
268
 
269
269
  if (updates.unrealizedTodayDirection.up || updates.unrealizedTodayDirection.down) {
270
270
  format.unrealizedTodayDirection = unchanged;
271
- format.unrealizedTodayDirection = updates.unrealizedTodayDirection;
271
+ setTimeout(() => format.unrealizedTodayDirection = updates.unrealizedTodayDirection, 0);
272
272
  }
273
273
  }
274
274
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1202,12 +1202,12 @@ module.exports = (() => {
1202
1202
 
1203
1203
  if (updates.marketDirection.up || updates.marketDirection.down) {
1204
1204
  format.marketDirection = unchanged;
1205
- format.marketDirection = updates.marketDirection;
1205
+ setTimeout(() => format.marketDirection = updates.marketDirection, 0);
1206
1206
  }
1207
1207
 
1208
1208
  if (updates.unrealizedTodayDirection.up || updates.unrealizedTodayDirection.down) {
1209
1209
  format.unrealizedTodayDirection = unchanged;
1210
- format.unrealizedTodayDirection = updates.unrealizedTodayDirection;
1210
+ setTimeout(() => format.unrealizedTodayDirection = updates.unrealizedTodayDirection, 0);
1211
1211
  }
1212
1212
  }
1213
1213