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 611183ed7..bf0f64e44 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 @@ -1,7 +1,7 @@
- @if (errors()?.length > 0 && !isLoading) { + @if (errors()?.length > 0 && !isLoading()) { }
- @if (isLoading) { + @if (isLoading()) {
@@ -40,7 +40,7 @@ [isCurrency]="true" [locale]="locale" [value]=" - isLoading + isLoading() ? undefined : performance?.netPerformanceWithCurrencyEffect " @@ -52,7 +52,7 @@ [isPercent]="true" [locale]="locale" [value]=" - isLoading + isLoading() ? undefined : performance?.netPerformancePercentageWithCurrencyEffect " diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts index da3b588de..7c2a76b27 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts @@ -35,7 +35,6 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; templateUrl: './portfolio-performance.component.html' }) export class GfPortfolioPerformanceComponent implements OnChanges { - @Input() isLoading: boolean; @Input() locale = getLocale(); @Input() performance: PortfolioPerformance; @Input() precision: number; @@ -43,6 +42,7 @@ export class GfPortfolioPerformanceComponent implements OnChanges { @Input() unit: string; public readonly errors = input(); + public readonly isLoading = input(); private readonly value = viewChild.required>('value'); @@ -56,7 +56,7 @@ export class GfPortfolioPerformanceComponent implements OnChanges { public ngOnChanges() { this.precision = this.precision >= 0 ? this.precision : 2; - if (this.isLoading) { + if (this.isLoading()) { if (this.value().nativeElement) { this.value().nativeElement.innerHTML = ''; }