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:
parent
f3dfdeddc4
commit
d69b255497
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue