From c012134cfe0d60b9810f1b524e911ab576cd541e Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Tue, 29 Oct 2024 22:05:14 +0100 Subject: [PATCH] fix: Remove hotfix --- src/pages/policy/output/decile/AverageImpactByDecile.jsx | 7 ------- src/pages/policy/output/decile/RelativeImpactByDecile.jsx | 7 ------- 2 files changed, 14 deletions(-) diff --git a/src/pages/policy/output/decile/AverageImpactByDecile.jsx b/src/pages/policy/output/decile/AverageImpactByDecile.jsx index 2f7dca330..dbc8e68e1 100644 --- a/src/pages/policy/output/decile/AverageImpactByDecile.jsx +++ b/src/pages/policy/output/decile/AverageImpactByDecile.jsx @@ -136,13 +136,6 @@ export default function averageImpactByDecile(props) { const { impact, policyLabel, metadata, mobile, useHoverCard = false } = props; const decileAverage = impact.decile.average; - // Hot fix to be removed to avoid deciles outside of 1-10 - Object.keys(decileAverage).forEach((key) => { - if (key > 10 || key < 1) { - delete decileAverage[key]; - } - }); - const averageChange = -impact.budget.budgetary_impact / impact.budget.households; const chart = ( diff --git a/src/pages/policy/output/decile/RelativeImpactByDecile.jsx b/src/pages/policy/output/decile/RelativeImpactByDecile.jsx index bd873d347..fcc16536e 100644 --- a/src/pages/policy/output/decile/RelativeImpactByDecile.jsx +++ b/src/pages/policy/output/decile/RelativeImpactByDecile.jsx @@ -127,13 +127,6 @@ export default function relativeImpactByDecile(props) { const { impact, policyLabel, metadata, mobile, useHoverCard = false } = props; const decileRelative = impact.decile.relative; - // Hot fix to be removed to avoid deciles outside of 1-10 - Object.keys(decileRelative).forEach((key) => { - if (key > 10 || key < 1) { - delete decileRelative[key]; - } - }); - const relativeChange = -impact.budget.budgetary_impact / impact.budget.baseline_net_income; const chart = (