Browse Source

Refactoring

pull/2167/head
Thomas 2 years ago
parent
commit
6af7c1b16f
  1. 3
      apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts
  2. 2
      libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

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

@ -420,9 +420,6 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
this.markets.emergingMarkets.value / marketsTotal; this.markets.emergingMarkets.value / marketsTotal;
this.markets.otherMarkets.value = this.markets.otherMarkets.value =
this.markets.otherMarkets.value / marketsTotal; this.markets.otherMarkets.value / marketsTotal;
console.log(this.positions);
console.log(this.symbols);
} }
public onAccountChartClicked({ symbol }: UniqueAsset) { public onAccountChartClicked({ symbol }: UniqueAsset) {

2
libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

@ -137,7 +137,7 @@ export class PortfolioProportionChartComponent
this.positions[symbol][this.keys[0]].toUpperCase() this.positions[symbol][this.keys[0]].toUpperCase()
].subCategory = { ].subCategory = {
[this.positions[symbol][this.keys[1]]]: { [this.positions[symbol][this.keys[1]]]: {
value: new Big(this.positions[symbol]?.value ?? 0) value: new Big(this.positions[symbol].value)
} }
}; };
} }

Loading…
Cancel
Save