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

Loading…
Cancel
Save