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,
netPerformanceInPercentage,
netPerformanceInPercentageWithCurrencyEffect,
netWorth,
totalInvestment,
value
@ -425,6 +426,7 @@ export class PortfolioController {
return {
date,
netPerformanceInPercentage,
netPerformanceInPercentageWithCurrencyEffect,
netWorthInPercentage:
performanceInformation.performance.currentNetWorth === 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 }) => {
this.errors = errors;
this.performance = performance;
this.isLoadingPerformance = false;
this.historicalDataItems = chart.map(
({ date, netPerformanceInPercentageWithCurrencyEffect }) => {
@ -135,6 +134,8 @@ export class HomeOverviewComponent implements OnDestroy, OnInit {
}
);
this.isLoadingPerformance = false;
this.changeDetectorRef.markForCheck();
});

Loading…
Cancel
Save