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

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

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,