fix(game): reset managerStatus before broadcasting prepared status

This commit is contained in:
Ralex
2025-10-26 18:39:06 +01:00
parent 0cd2e8d8b7
commit 16e0fc8006

View File

@@ -331,6 +331,7 @@ class Game {
total: this.quizz.questions.length, total: this.quizz.questions.length,
}) })
this.managerStatus = null
this.broadcastStatus(STATUS.SHOW_PREPARED, { this.broadcastStatus(STATUS.SHOW_PREPARED, {
totalAnswers: question.answers.length, totalAnswers: question.answers.length,
questionNumber: this.round.currentQuestion + 1, questionNumber: this.round.currentQuestion + 1,
@@ -370,7 +371,7 @@ class Game {
return return
} }
await this.showResults(question) this.showResults(question)
} }
showResults(question: any) { showResults(question: any) {