Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Refactor value to valueInBaseCurrency (#2167)

Thomas Kaulea101dd3bdd5
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 6d2ada8b0d..8696d6ac21 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,