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; }