Commit 9e7ff980 authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Fixes sentry error ecfd1d2cb4a146e083a0b5368451664f

parent ca1e431f
......@@ -60,7 +60,7 @@ export class QuizRouter extends AbstractRouter {
throw new UnauthorizedError();
}
const quiz = await QuizDAO.getActiveQuizByName(attendee.currentQuizName);
if (!quiz) {
if (!quiz || quiz.currentQuestionIndex === -1 || !attendee.responses[quiz.currentQuestionIndex]) {
throw new BadRequestError();
}
......
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