From f5f045d0ded720c086ef50c87befd5d1da576058 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Thu, 13 May 2021 21:56:52 +0200 Subject: [PATCH] Clean up code --- .../portfolio-proportion-chart.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/client/src/app/components/portfolio-proportion-chart/portfolio-proportion-chart.component.ts b/apps/client/src/app/components/portfolio-proportion-chart/portfolio-proportion-chart.component.ts index 6a4e808b1..6ab5b3459 100644 --- a/apps/client/src/app/components/portfolio-proportion-chart/portfolio-proportion-chart.component.ts +++ b/apps/client/src/app/components/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -59,7 +59,7 @@ export class PortfolioProportionChartComponent private initialize() { this.isLoading = true; const chartData: { - [symbol: string]: { color: string; value: number }; + [symbol: string]: { color?: string; value: number }; } = {}; Object.keys(this.positions).forEach((symbol) => { @@ -70,7 +70,6 @@ export class PortfolioProportionChartComponent ].value; } else { chartData[this.positions[symbol][this.key]] = { - color: 'red', value: this.positions[symbol].value }; } @@ -79,7 +78,6 @@ export class PortfolioProportionChartComponent chartData['Other'].value += this.positions[symbol].value; } else { chartData['Other'] = { - color: 'red', value: this.positions[symbol].value }; }