From cebf15284e73884a57da725dc5c715b699812e91 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 6 Apr 2026 15:43:16 +0200 Subject: [PATCH] Task/refactor input in world map chart component (#6692) Refactor input to isInPercentage --- .../src/app/pages/portfolio/allocations/allocations-page.html | 2 +- apps/client/src/app/pages/public/public-page.html | 2 +- .../lib/world-map-chart/world-map-chart.component.stories.ts | 4 ++-- libs/ui/src/lib/world-map-chart/world-map-chart.component.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/client/src/app/pages/portfolio/allocations/allocations-page.html b/apps/client/src/app/pages/portfolio/allocations/allocations-page.html index 0b75c6d8f..530b528e6 100644 --- a/apps/client/src/app/pages/portfolio/allocations/allocations-page.html +++ b/apps/client/src/app/pages/portfolio/allocations/allocations-page.html @@ -204,7 +204,7 @@ diff --git a/apps/client/src/app/pages/public/public-page.html b/apps/client/src/app/pages/public/public-page.html index c422f9006..53132442b 100644 --- a/apps/client/src/app/pages/public/public-page.html +++ b/apps/client/src/app/pages/public/public-page.html @@ -154,7 +154,7 @@
diff --git a/libs/ui/src/lib/world-map-chart/world-map-chart.component.stories.ts b/libs/ui/src/lib/world-map-chart/world-map-chart.component.stories.ts index bdc983ae3..6d9d85295 100644 --- a/libs/ui/src/lib/world-map-chart/world-map-chart.component.stories.ts +++ b/libs/ui/src/lib/world-map-chart/world-map-chart.component.stories.ts @@ -44,7 +44,7 @@ export const Default: Story = { }) ), format: `{0} ${DEFAULT_CURRENCY}`, - isInPercent: false + isInPercentage: false } }; @@ -52,6 +52,6 @@ export const InPercentage: Story = { args: { countries: VWRL_COUNTRY_ALLOCATION, format: '{0}%', - isInPercent: true + isInPercentage: true } }; diff --git a/libs/ui/src/lib/world-map-chart/world-map-chart.component.ts b/libs/ui/src/lib/world-map-chart/world-map-chart.component.ts index 2a926cf7c..f86d4d010 100644 --- a/libs/ui/src/lib/world-map-chart/world-map-chart.component.ts +++ b/libs/ui/src/lib/world-map-chart/world-map-chart.component.ts @@ -21,7 +21,7 @@ import svgMap from 'svgmap'; export class GfWorldMapChartComponent implements OnChanges, OnDestroy { @Input() countries: { [code: string]: { name?: string; value: number } }; @Input() format: string; - @Input() isInPercent = false; + @Input() isInPercentage = false; @Input() locale = getLocale(); public isLoading = true; @@ -47,7 +47,7 @@ export class GfWorldMapChartComponent implements OnChanges, OnDestroy { } private initialize() { - if (this.isInPercent) { + if (this.isInPercentage) { // Convert value of countries to percentage let sum = 0; Object.keys(this.countries).map((country) => {