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 56e75ec1e..f7d4e469a 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 @@ -81,7 +81,11 @@ export class GfPortfolioPerformanceComponent implements OnChanges { } public onShowErrors() { - const errorMessageParts = []; + if (!this.errors?.length) { + return; + } + + const errorMessageParts: string[] = []; for (const error of this.errors) { errorMessageParts.push(`${error.symbol} (${error.dataSource})`);