From 1aea8c925b17c1c65c8f956cf2b2736b5005d359 Mon Sep 17 00:00:00 2001 From: Simao Rodrigues Date: Wed, 31 Jul 2024 14:53:46 +0100 Subject: [PATCH] Specify forestryEmployment widget's units to percentages - to prevent spaces before the percentage sign --- components/widgets/land-use/forestry-employment/selectors.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/widgets/land-use/forestry-employment/selectors.js b/components/widgets/land-use/forestry-employment/selectors.js index fd81cd70e0..76941fd4db 100644 --- a/components/widgets/land-use/forestry-employment/selectors.js +++ b/components/widgets/land-use/forestry-employment/selectors.js @@ -30,7 +30,10 @@ export const parseData = createSelector( const color = colors[key]; if (!value) return acc; - return [...acc, { label, value: percentage, percentage, color }]; + return [ + ...acc, + { label, value: percentage, percentage, color, unit: '%' }, + ]; }, []); return formattedData;