From 71eb37438af1287d01e2c1cf5c6d984941266579 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 23 Mar 2024 19:27:51 +0100 Subject: [PATCH] Fix missing performance chart in presenter view --- apps/api/src/app/portfolio/portfolio.controller.ts | 2 ++ .../app/components/home-overview/home-overview.component.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/portfolio/portfolio.controller.ts b/apps/api/src/app/portfolio/portfolio.controller.ts index 80ea08fce..e4580f1f3 100644 --- a/apps/api/src/app/portfolio/portfolio.controller.ts +++ b/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 diff --git a/apps/client/src/app/components/home-overview/home-overview.component.ts b/apps/client/src/app/components/home-overview/home-overview.component.ts index 7beb322a2..75e177749 100644 --- a/apps/client/src/app/components/home-overview/home-overview.component.ts +++ b/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(); });