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 e8bcfea0e..611183ed7 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) { (); + private readonly value = viewChild.required>('value'); @@ -84,13 +86,14 @@ export class GfPortfolioPerformanceComponent implements OnChanges { } protected onShowErrors() { - if (!this.errors?.length) { + const errors = this.errors(); + if (!errors?.length) { return; } const errorMessageParts: string[] = []; - for (const error of this.errors) { + for (const error of errors) { errorMessageParts.push(`${error.symbol} (${error.dataSource})`); }