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,