Remove comments

This commit is contained in:
Muhammad Rais Ramadhani
2025-09-21 16:26:20 +07:00
parent 93b1098e74
commit 8dc69b9b34
3 changed files with 1 additions and 21 deletions

View File

@@ -85,7 +85,7 @@ const Player = {
data: { text: "Waiting for the players to answer" },
})
socket.to(game.room).emit("game:playerAnswer", game.playersAnswer.length)
// Also emit total players to keep the UI updated
io.to(game.room).emit("game:totalPlayers", game.players.length)
if (game.playersAnswer.length === game.players.length) {