Browse Source

feat(app): show in UI

pull/4634/head
KenTandrian 4 months ago
parent
commit
05e1075eff
  1. 8
      apps/client/src/app/components/home-watchlist/home-watchlist.component.ts

8
apps/client/src/app/components/home-watchlist/home-watchlist.component.ts

@ -118,15 +118,17 @@ export class HomeWatchlistComponent implements OnDestroy, OnInit {
.fetchWatchlist() .fetchWatchlist()
.pipe(takeUntil(this.unsubscribeSubject)) .pipe(takeUntil(this.unsubscribeSubject))
.subscribe(({ watchlist }) => { .subscribe(({ watchlist }) => {
this.watchlist = watchlist.map(({ dataSource, symbol }) => ({ this.watchlist = watchlist.map(
({ dataSource, performances, symbol }) => ({
dataSource, dataSource,
performances,
symbol, symbol,
marketCondition: null, marketCondition: null,
name: symbol, name: symbol,
performances: null,
trend50d: 'UNKNOWN', trend50d: 'UNKNOWN',
trend200d: 'UNKNOWN' trend200d: 'UNKNOWN'
})); })
);
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
}); });

Loading…
Cancel
Save