diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html index 9fe4706d7..e7b89c8ee 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html @@ -32,7 +32,7 @@ {{ unit }} - @if (showDetails) { + @if (showDetails()) {
(); @@ -47,6 +46,7 @@ export class GfPortfolioPerformanceComponent implements OnChanges { return value !== undefined && value >= 0 ? value : 2; } }); + public readonly showDetails = input(false); private readonly value = viewChild.required>('value'); @@ -70,7 +70,7 @@ export class GfPortfolioPerformanceComponent implements OnChanges { duration: 1, separator: getNumberFormatGroup(this.locale()) }).start(); - } else if (this.showDetails === false) { + } else if (this.showDetails() === false) { new CountUp( 'value', this.performance().netPerformancePercentageWithCurrencyEffect * 100,