From de918368a8ed86b170f31ec681a9fc1700559a74 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Tue, 7 Jul 2026 23:13:43 +0700 Subject: [PATCH] resolve errors --- .../portfolio-performance/portfolio-performance.component.ts | 3 ++- 1 file changed, 2 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 90fc23a2a..a48d77a2d 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 @@ -13,8 +13,8 @@ import { GfValueComponent } from '@ghostfolio/ui/value'; import { ChangeDetectionStrategy, Component, - ElementRef, effect, + ElementRef, inject, input, viewChild @@ -87,6 +87,7 @@ export class GfPortfolioPerformanceComponent { protected onShowErrors() { const errors = this.errors(); + if (!errors?.length) { return; }