mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-14 04:25:35 +01:00
fix(game): increment current question on reconnect for manager and player
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user