Browse Source

fix(targets): correct account typing and stable chart inputs

pull/8458/head
PJ 5 days ago
parent
commit
989302b8d5
  1. 8
      apps/client/src/app/pages/portfolio/targets/targets-page.component.ts

8
apps/client/src/app/pages/portfolio/targets/targets-page.component.ts

@ -53,8 +53,6 @@ export class GfTargetsPageComponent implements OnInit {
protected isSaving = false; protected isSaving = false;
protected hasError = false; protected hasError = false;
protected canEdit = false; protected canEdit = false;
protected readonly UNKNOWN_KEY = UNKNOWN_KEY;
protected readonly classes = Object.values(AssetClass);
protected readonly labels: Record<string, string> = Object.fromEntries( protected readonly labels: Record<string, string> = Object.fromEntries(
Object.values(AssetClass).map((assetClass) => [assetClass, translate(assetClass)]) Object.values(AssetClass).map((assetClass) => [assetClass, translate(assetClass)])
); );
@ -90,11 +88,7 @@ export class GfTargetsPageComponent implements OnInit {
} }
protected get accounts() { protected get accounts() {
return (this.user?.accounts ?? []).filter((account) => !account.isExcluded); return this.user?.accounts ?? [];
}
protected get usableResult() {
return this.result?.status === 'ready';
} }
protected get hasReadValues() { protected get hasReadValues() {

Loading…
Cancel
Save