Browse Source

Refactor value to valueInBaseCurrency (#2167)

* Revert value to valueInBaseCurrency refactoring
pull/2168/head
Thomas Kaul 2 years ago
committed by GitHub
parent
commit
ea101dd3bd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts

11
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,

Loading…
Cancel
Save