From 989302b8d5c3afa6382e82feda43be056affafd6 Mon Sep 17 00:00:00 2001 From: PJ Date: Wed, 18 Nov 2026 21:09:19 +0100 Subject: [PATCH] fix(targets): correct account typing and stable chart inputs --- .../app/pages/portfolio/targets/targets-page.component.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/client/src/app/pages/portfolio/targets/targets-page.component.ts b/apps/client/src/app/pages/portfolio/targets/targets-page.component.ts index 419275bb46..acf2ad900e 100644 --- a/apps/client/src/app/pages/portfolio/targets/targets-page.component.ts +++ b/apps/client/src/app/pages/portfolio/targets/targets-page.component.ts @@ -53,8 +53,6 @@ export class GfTargetsPageComponent implements OnInit { protected isSaving = false; protected hasError = false; protected canEdit = false; - protected readonly UNKNOWN_KEY = UNKNOWN_KEY; - protected readonly classes = Object.values(AssetClass); protected readonly labels: Record = Object.fromEntries( Object.values(AssetClass).map((assetClass) => [assetClass, translate(assetClass)]) ); @@ -90,11 +88,7 @@ export class GfTargetsPageComponent implements OnInit { } protected get accounts() { - return (this.user?.accounts ?? []).filter((account) => !account.isExcluded); - } - - protected get usableResult() { - return this.result?.status === 'ready'; + return this.user?.accounts ?? []; } protected get hasReadValues() {