diff --git a/js/main.js b/js/main.js index 41fb751..7e76eea 100644 --- a/js/main.js +++ b/js/main.js @@ -592,9 +592,9 @@ function setUpPacket(data, path) { // For loop to generate requests (async () => { - for (const n in data["question_requests"]) { + for (let n in data["question_requests"]) { question_number++; - //n = parseInt(n); + n = parseInt(n); let obj = { qid: n, type: question_type }; let question_in_db = await question_db.question_data.get(obj);