diff --git a/truthseeker/routes/routes_api.py b/truthseeker/routes/routes_api.py index 6bf81d5..5aa7001 100644 --- a/truthseeker/routes/routes_api.py +++ b/truthseeker/routes/routes_api.py @@ -196,7 +196,7 @@ def check_anwser(): member.results = results if game.has_finished(): json_game_results = game.generate_game_results() - APP.socketio_app.emit("gamefinshed", json_game_results, room="game."+game.game_id) + APP.socketio_app.emit("gamefinished", json_game_results, room="game."+game.game_id) del game response = {"error": 0} return response diff --git a/truthseeker/static/js/game.js b/truthseeker/static/js/game.js index 7cdc098..4b353a6 100644 --- a/truthseeker/static/js/game.js +++ b/truthseeker/static/js/game.js @@ -195,7 +195,7 @@ function initSock(){ console.log(username); }); - socket.on("gamefinshed", (finalResults) => { + socket.on("gamefinished", (finalResults) => { hide("emotion_and_culprit_choices"); console.log(finalResults); for (const player in finalResults["player"]){