Browse Source
Refactor value to valueInBaseCurrency (#2167)
* Revert value to valueInBaseCurrency refactoring
pull/2168/head
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
8 deletions
-
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, |
|
|
|