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 314c083b3a..79e2289199 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 3ca335774d..90b0920053 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) + } }