fix(game): increment current question on reconnect for manager and player

This commit is contained in:
Ralex committed 2025-10-26 18:55:56 +01:00
1 parent 16e0fc8006
commit b91531657b
2 files changed
+18 -5

No files matched your search

+2 -2
View File
@@ -203,7 +203,7 @@ class Game {
socket.emit("manager:successReconnect", {
gameId: this.gameId,
currentQuestion: {
current: this.round.currentQuestion,
current: this.round.currentQuestion + 1,
total: this.quizz.questions.length,
},
status,
@@ -250,7 +250,7 @@ class Game {
socket.emit("player:successReconnect", {
gameId: this.gameId,
currentQuestion: {
current: this.round.currentQuestion,
current: this.round.currentQuestion + 1,
total: this.quizz.questions.length,
},
status,