|
@ -115,7 +115,7 @@ export class AccountDetailDialog implements OnDestroy, OnInit { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
this.dataService |
|
|
this.dataService |
|
|
.fetchPortfolioDetails({ |
|
|
.fetchPortfolioHoldings({ |
|
|
filters: [ |
|
|
filters: [ |
|
|
{ |
|
|
{ |
|
|
type: 'ACCOUNT', |
|
|
type: 'ACCOUNT', |
|
@ -125,11 +125,7 @@ export class AccountDetailDialog implements OnDestroy, OnInit { |
|
|
}) |
|
|
}) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.subscribe(({ holdings }) => { |
|
|
.subscribe(({ holdings }) => { |
|
|
this.holdings = []; |
|
|
this.holdings = holdings; |
|
|
|
|
|
|
|
|
for (const [symbol, holding] of Object.entries(holdings)) { |
|
|
|
|
|
this.holdings.push(holding); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|