From 872a645b27ba78d5e8f150d31d8fc3a0454c4055 Mon Sep 17 00:00:00 2001 From: Marty Bostick Date: Wed, 29 Jul 2026 21:25:31 +0000 Subject: [PATCH] Fix: call generatePlan() from within updateAll() so referral plan preview populates on every change --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index cd67ccc..182931d 100644 --- a/index.html +++ b/index.html @@ -1892,6 +1892,9 @@ function updateAll() { } document.getElementById('comparisonBody').innerHTML = cRows; + // Update the referral plan preview + generatePlan(); + const ctx3 = document.getElementById('compareChart').getContext('2d'); const compareLabels = SCENARIOS.map(s => s.label.replace('$', '').replace('(', '').replace(')', '')); const compareData = SCENARIOS.map(s => Math.round(s.yr1 * mult * numPeople));