Refactor value to valueInBaseCurrency (#2167)
* Revert value to valueInBaseCurrency refactoring
This commit is contained in:
parent
cd67ce82fa
commit
ea101dd3bd
@ -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…
x
Reference in New Issue
Block a user