Fixes automatic quiz start when adding a new one

parent 8b581eca
......@@ -461,7 +461,7 @@ export class QuizRouter extends AbstractRouter {
quiz.currentStartTimestamp = -1;
quiz.readingConfirmationRequested = false;
quiz.privateKey = privateKey;
quiz.state = QuizState.Active;
quiz.state = quiz.questionList.length > 0 ? QuizState.Active : QuizState.Inactive;
QuizDAO.convertLegacyQuiz(quiz);
const quizValidator = new QuizModel(quiz);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment