From 83f58176cfc8aa577a174fc31e4fc81aa0f928c9 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 6 Apr 2026 15:27:38 +0200 Subject: [PATCH] Refactor input to isInPercentage --- .../portfolio-proportion-chart.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts b/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts index 2f5d9e4f7..4021bf97f 100644 --- a/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts +++ b/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -74,7 +74,7 @@ export class GfPortfolioProportionChartComponent value: number; }; } = {}; - @Input() isInPercent = false; + @Input() isInPercentage = false; @Input() keys: string[] = []; @Input() locale = getLocale(); @Input() maxItems?: number; @@ -198,7 +198,7 @@ export class GfPortfolioProportionChartComponent }); } - if (this.isInPercent) { + if (this.isInPercentage) { const totalValueInPercentage = getSum( Object.values(chartData).map(({ value }) => { return value; @@ -465,7 +465,7 @@ export class GfPortfolioProportionChartComponent if ((context.raw as number) === Number.MAX_SAFE_INTEGER) { return $localize`No data available`; - } else if (this.isInPercent) { + } else if (this.isInPercentage) { return [`${name ?? symbol}`, `${percentage.toFixed(2)}%`]; } else { const value = context.raw as number;