From ea101dd3bdd53cf7ad893438ada67a0b25ca0d68 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 23 Jul 2023 14:13:02 +0200 Subject: [PATCH] Refactor value to valueInBaseCurrency (#2167) * Revert value to valueInBaseCurrency refactoring --- .../allocations/allocations-page.component.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts index 6d2ada8b0..8696d6ac2 100644 --- a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts +++ b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts @@ -65,13 +65,8 @@ export class AllocationsPageComponent implements OnDestroy, OnInit { public positions: { [symbol: string]: Pick< PortfolioPosition, - | 'assetClass' - | 'assetSubClass' - | 'currency' - | 'exchange' - | 'name' - | 'valueInBaseCurrency' - > & { etfProvider: string }; + 'assetClass' | 'assetSubClass' | 'currency' | 'exchange' | 'name' + > & { etfProvider: string; value: number }; }; public sectors: { [name: string]: { name: string; value: number }; @@ -296,7 +291,7 @@ export class AllocationsPageComponent implements OnDestroy, OnInit { } this.positions[symbol] = { - valueInBaseCurrency: value, + value, assetClass: position.assetClass, assetSubClass: position.assetSubClass, currency: position.currency,