From 0a04a706e1ee0f470f0ba253cecbdf234844ef23 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Tue, 7 Jul 2026 07:49:47 +0700 Subject: [PATCH] fix(client): resolve errors --- .../portfolio-performance.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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})`);