From 872e10ba081baf65cb52836e4a5f7da0336d8803 Mon Sep 17 00:00:00 2001 From: Oskar Date: Wed, 22 Nov 2023 20:38:53 +0100 Subject: [PATCH] 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 --- web/quiz.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/quiz.js b/web/quiz.js index 9912b11..6651866 100644 --- a/web/quiz.js +++ b/web/quiz.js @@ -157,8 +157,12 @@ function updateSubmitTimer() { clearInterval(state.submitInterval) if (getRule('questionTimeout') && !getRule('allowQOvertime')) { - console.log("Question not submitted, clearing input"); - resetQuestionResponse(state.currentQuestion); + + if (!state.waitNextQuestion) { + console.log("Question not submitted, clearing input"); + resetQuestionResponse(state.currentQuestion); + } + submitQuiz() // Force next question }