fix bug with questions above 9 being misidentified because i'm a moron

who didn't think to test with more that 9 questions and only checking
one digit -.-
This commit is contained in:
Oskar Winkels 2020-01-15 23:21:19 +01:00 committed by Oskar
parent f3dfdeddc4
commit d69b255497
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ function submitQuiz() {
console.log(key + ": " + value)
// "q3" -> 3
var idx = key[1]
var idx = key.slice(1)
if (state.questions[idx].type == 'ChooseOne' || state.questions[idx].type == 'ChooseAny') {
state.questions[idx].answers.sort()