|
@ -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(); |
|
|
}); |
|
|
}); |
|
|