From d510506a0ac30c78c3a2a900083952e5d68c2092 Mon Sep 17 00:00:00 2001 From: michaelglenister Date: Mon, 15 Jan 2024 16:40:51 +0200 Subject: [PATCH] Undo commit PR 725 The root cause of charts not showing was missing data --- assets/js/pages/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/pages/profile.js b/assets/js/pages/profile.js index dc9520d74..031aca295 100644 --- a/assets/js/pages/profile.js +++ b/assets/js/pages/profile.js @@ -151,7 +151,7 @@ export default class ProfilePage { const householdPercent = pageData.household_percent; $('#income-over-time .indicator-metric').hide(); - if (chartData) { + if (householdPercent.Middle) { $('#income-over-time .financial-period').empty(); overall_chart($('#income-over-time .indicator-chart')[0], chartData);