Fix real-time chart updates by correcting function name mismatch in WebSocket event handlers

This commit is contained in:
2025-08-27 08:33:09 +00:00
parent c81d0b780d
commit 0c095f7fcd

View File

@@ -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,