From 05e1075eff4e973e7855dcbfd507bb8470f8e36d Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Wed, 30 Apr 2025 22:42:38 +0700 Subject: [PATCH] feat(app): show in UI --- .../home-watchlist.component.ts | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts b/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts index daf512b34..1f3829c58 100644 --- a/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts +++ b/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 }) => ({ - dataSource, - symbol, - marketCondition: null, - name: symbol, - performances: null, - trend50d: 'UNKNOWN', - trend200d: 'UNKNOWN' - })); + this.watchlist = watchlist.map( + ({ dataSource, performances, symbol }) => ({ + dataSource, + performances, + symbol, + marketCondition: null, + name: symbol, + trend50d: 'UNKNOWN', + trend200d: 'UNKNOWN' + }) + ); this.changeDetectorRef.markForCheck(); });