Fix: call generatePlan() from within updateAll() so referral plan preview populates on every change

This commit is contained in:
Marty Bostick
2026-07-29 21:25:31 +00:00
parent e7ddf5b11d
commit 872a645b27
+3
View File
@@ -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));