Fix regression resetting inputs after wait

The wait timer for the next question would trigger the reset of inputs
because FSG thought the question was over without a question submitted
This commit is contained in:
Oskar Winkels 2023-11-22 20:38:53 +01:00
parent ca644a6e66
commit 872e10ba08
Signed by: o.winkels
GPG Key ID: E7484A06E99DAEF1
1 changed files with 6 additions and 2 deletions

View File

@ -157,8 +157,12 @@ function updateSubmitTimer() {
clearInterval(state.submitInterval)
if (getRule('questionTimeout') && !getRule('allowQOvertime')) {
if (!state.waitNextQuestion) {
console.log("Question not submitted, clearing input");
resetQuestionResponse(state.currentQuestion);
}
submitQuiz() // Force next question
}