From 9e5324203e57f2df195608c60c68ecef1fed2693 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 1 Oct 2026 11:39:17 +0200 Subject: [PATCH] Implement ROI portfolio calculator --- .../portfolio-summary.component.html | 37 +++++++++---------- .../portfolio/analysis/analysis-page.html | 37 +++++++++---------- 2 files changed, 34 insertions(+), 40 deletions(-) diff --git a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html index 5335712cd7..f608e1e7be 100644 --- a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html +++ b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -149,26 +149,23 @@
Net Performance - @if ( - user?.settings?.performanceCalculationType === - PerformanceCalculationType.ROAI - ) { - (ROAI) - } @else if ( - user?.settings?.performanceCalculationType === - PerformanceCalculationType.ROI - ) { - (ROI) + @switch (user?.settings?.performanceCalculationType) { + @case (PerformanceCalculationType.ROAI) { + (ROAI) + } + @case (PerformanceCalculationType.ROI) { + (ROI) + } }
diff --git a/apps/client/src/app/pages/portfolio/analysis/analysis-page.html b/apps/client/src/app/pages/portfolio/analysis/analysis-page.html index 38cfa0861d..7cce212eb5 100644 --- a/apps/client/src/app/pages/portfolio/analysis/analysis-page.html +++ b/apps/client/src/app/pages/portfolio/analysis/analysis-page.html @@ -254,26 +254,23 @@
Net Performance - @if ( - user?.settings?.performanceCalculationType === - PerformanceCalculationType.ROAI - ) { - (ROAI) - } @else if ( - user?.settings?.performanceCalculationType === - PerformanceCalculationType.ROI - ) { - (ROI) + @switch (user?.settings?.performanceCalculationType) { + @case (PerformanceCalculationType.ROAI) { + (ROAI) + } + @case (PerformanceCalculationType.ROI) { + (ROI) + } }