GitLab wurde aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Vielen Dank für Ihre Geduld.

Commit e202b7fc authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Fixes bonus token for ranged questions when answered in the acceptable range

parent 6d6974e9
......@@ -93,7 +93,8 @@ export class QuizRouter extends AbstractRouter {
return false;
return Leaderboard.getAnswerStateForResponse(attendee.responses[index].value, value) !== AnswerState.Correct;
const leaderboardResult = Leaderboard.getAnswerStateForResponse(attendee.responses[index].value, value);
return value.TYPE === QuestionType.RangedQuestion ? leaderboardResult === AnswerState.Wrong : leaderboardResult !== AnswerState.Correct;
return !canNotUseToken;
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