From 9303a1d36b0754be76d3c984e1c23573950b6f6f Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Fri, 25 Oct 2024 18:56:49 +0200 Subject: [PATCH] chore: Lint --- src/pages/policy/output/decile/AverageImpactByDecile.jsx | 2 +- src/pages/policy/output/decile/RelativeImpactByDecile.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/policy/output/decile/AverageImpactByDecile.jsx b/src/pages/policy/output/decile/AverageImpactByDecile.jsx index f8d54fc85..2f7dca330 100644 --- a/src/pages/policy/output/decile/AverageImpactByDecile.jsx +++ b/src/pages/policy/output/decile/AverageImpactByDecile.jsx @@ -137,7 +137,7 @@ export default function averageImpactByDecile(props) { const decileAverage = impact.decile.average; // Hot fix to be removed to avoid deciles outside of 1-10 - Object.keys(decileAverage).map((key) => { + Object.keys(decileAverage).forEach((key) => { if (key > 10 || key < 1) { delete decileAverage[key]; } diff --git a/src/pages/policy/output/decile/RelativeImpactByDecile.jsx b/src/pages/policy/output/decile/RelativeImpactByDecile.jsx index 8967ba5a3..bd873d347 100644 --- a/src/pages/policy/output/decile/RelativeImpactByDecile.jsx +++ b/src/pages/policy/output/decile/RelativeImpactByDecile.jsx @@ -128,7 +128,7 @@ export default function relativeImpactByDecile(props) { const decileRelative = impact.decile.relative; // Hot fix to be removed to avoid deciles outside of 1-10 - Object.keys(decileRelative).map((key) => { + Object.keys(decileRelative).forEach((key) => { if (key > 10 || key < 1) { delete decileRelative[key]; }