From 9697d7c992093c75c2cdae9d9a7831cea9341e07 Mon Sep 17 00:00:00 2001 From: Vahid Ahmadi Date: Thu, 28 Aug 2025 17:13:40 +0100 Subject: [PATCH 1/2] Fix UK behavioral response --- changelog_entry.yaml | 7 ++++--- src/pages/policy/PolicyRightSidebar.jsx | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/changelog_entry.yaml b/changelog_entry.yaml index ebb7a6697..e7ecfe1ff 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -1,4 +1,5 @@ -- bump: minor +- bump: patch changes: - added: - - Add detailed childcare policy analysis report + fixed: + - Fixed UK behavioral response calculations returning zero FTE impacts by updating parameter names to match UK API expectations + diff --git a/src/pages/policy/PolicyRightSidebar.jsx b/src/pages/policy/PolicyRightSidebar.jsx index 6b255820a..db1704154 100644 --- a/src/pages/policy/PolicyRightSidebar.jsx +++ b/src/pages/policy/PolicyRightSidebar.jsx @@ -111,10 +111,10 @@ function BehavioralResponseToggle(props) { const behavioralResponseReforms = useMemo( () => ({ uk: { - "gov.simulation.labor_supply_responses.income_elasticity": { + "gov.behavioral_responses.labor_supply_income_elasticity": { [dateString]: -0.05, }, - "gov.simulation.labor_supply_responses.substitution_elasticity": { + "gov.behavioral_responses.labor_supply_substitution_elasticity": { [dateString]: 0.25, }, }, From 244ef93a511c2c9a98177b66423d8804c7341edf Mon Sep 17 00:00:00 2001 From: Vahid Ahmadi Date: Thu, 28 Aug 2025 17:19:34 +0100 Subject: [PATCH 2/2] change --- changelog_entry.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e7ecfe1ff..e23244d65 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -2,4 +2,3 @@ changes: fixed: - Fixed UK behavioral response calculations returning zero FTE impacts by updating parameter names to match UK API expectations -