Browse Source

Fix missing performance chart in presenter view

pull/3181/head
Thomas Kaul 1 year ago
parent
commit
71eb37438a
  1. 2
      apps/api/src/app/portfolio/portfolio.controller.ts
  2. 3
      apps/client/src/app/components/home-overview/home-overview.component.ts

2
apps/api/src/app/portfolio/portfolio.controller.ts

@ -418,6 +418,7 @@ export class PortfolioController {
({ ({
date, date,
netPerformanceInPercentage, netPerformanceInPercentage,
netPerformanceInPercentageWithCurrencyEffect,
netWorth, netWorth,
totalInvestment, totalInvestment,
value value
@ -425,6 +426,7 @@ export class PortfolioController {
return { return {
date, date,
netPerformanceInPercentage, netPerformanceInPercentage,
netPerformanceInPercentageWithCurrencyEffect,
netWorthInPercentage: netWorthInPercentage:
performanceInformation.performance.currentNetWorth === 0 performanceInformation.performance.currentNetWorth === 0
? 0 ? 0

3
apps/client/src/app/components/home-overview/home-overview.component.ts

@ -124,7 +124,6 @@ export class HomeOverviewComponent implements OnDestroy, OnInit {
.subscribe(({ chart, errors, performance }) => { .subscribe(({ chart, errors, performance }) => {
this.errors = errors; this.errors = errors;
this.performance = performance; this.performance = performance;
this.isLoadingPerformance = false;
this.historicalDataItems = chart.map( this.historicalDataItems = chart.map(
({ date, netPerformanceInPercentageWithCurrencyEffect }) => { ({ date, netPerformanceInPercentageWithCurrencyEffect }) => {
@ -135,6 +134,8 @@ export class HomeOverviewComponent implements OnDestroy, OnInit {
} }
); );
this.isLoadingPerformance = false;
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
}); });

Loading…
Cancel
Save