Browse Source

feat(app): show in UI

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

20
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, ({ dataSource, performances, symbol }) => ({
symbol, dataSource,
marketCondition: null, performances,
name: symbol, symbol,
performances: null, marketCondition: null,
trend50d: 'UNKNOWN', name: symbol,
trend200d: 'UNKNOWN' trend50d: 'UNKNOWN',
})); trend200d: 'UNKNOWN'
})
);
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
}); });

Loading…
Cancel
Save