Skip to content

Commit

Permalink
Merge pull request #2156 from anth-volk/fix/remove-hotfix
Browse files Browse the repository at this point in the history
Remove hotfix
  • Loading branch information
anth-volk authored Oct 29, 2024
2 parents afcc8eb + c012134 commit 320b590
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions src/pages/policy/output/decile/AverageImpactByDecile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down
7 changes: 0 additions & 7 deletions src/pages/policy/output/decile/RelativeImpactByDecile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 320b590

Please sign in to comment.