Browse Source

Refactoring

pull/767/head
Thomas 3 years ago
parent
commit
7521ce28bd
  1. 12
      apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts

12
apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts

@ -236,14 +236,14 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
// Prepare analysis data by continents, countries and sectors except for cash // Prepare analysis data by continents, countries and sectors except for cash
if (position.countries.length > 0) { if (position.countries.length > 0) {
this.markets['developedMarkets'].value += this.markets.developedMarkets.value +=
position.markets['developedMarkets'] * position.markets.developedMarkets *
(aPeriod === 'original' ? position.investment : position.value); (aPeriod === 'original' ? position.investment : position.value);
this.markets['emergingMarkets'].value += this.markets.emergingMarkets.value +=
position.markets['emergingMarkets'] * position.markets.emergingMarkets *
(aPeriod === 'original' ? position.investment : position.value); (aPeriod === 'original' ? position.investment : position.value);
this.markets['otherMarkets'].value += this.markets.otherMarkets.value +=
position.markets['otherMarkets'] * position.markets.otherMarkets *
(aPeriod === 'original' ? position.investment : position.value); (aPeriod === 'original' ? position.investment : position.value);
for (const country of position.countries) { for (const country of position.countries) {

Loading…
Cancel
Save