From 0c095f7fcd4c4eea09c536dcda1571df27d0667d Mon Sep 17 00:00:00 2001 From: markus Date: Wed, 27 Aug 2025 08:33:09 +0000 Subject: [PATCH] Fix real-time chart updates by correcting function name mismatch in WebSocket event handlers --- app/static/js/simulation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/static/js/simulation.js b/app/static/js/simulation.js index fe6f913..bc489bd 100644 --- a/app/static/js/simulation.js +++ b/app/static/js/simulation.js @@ -676,7 +676,7 @@ function initializeRealtimeUpdates() { // Simulation progress updates socket.on('simulation_progress', function(data) { debugLog('Received real-time progress update'); - updateSimulationProgress(data); + onSimulationProgress(data); }); // Simulation completion @@ -721,7 +721,7 @@ function startFallbackPolling() { if (response.latest_snapshot) { // Simulate progress update - updateSimulationProgress({ + onSimulationProgress({ iteration: response.latest_snapshot.iteration, total_wealth: response.latest_snapshot.total_wealth, gini_coefficient: response.latest_snapshot.gini_coefficient,