From 34c1d2e8c992fcf8a6d473a3d18accd6315a51da Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 4 Aug 2021 19:31:07 +0100 Subject: [PATCH] . --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 3366112..6268d88 100644 --- a/js/main.js +++ b/js/main.js @@ -229,7 +229,7 @@ async function loadExamList(data) { } // Check the database for exams that have been saved - question_db.saved_exams.toArray().then((saved_exams) => { + question_db.saved_exams.toArray().then(async (saved_exams) => { if (saved_exams.length < 1) { $("#cache-details summary").append("No cached exams / questions"); } else { @@ -278,7 +278,7 @@ async function loadExamList(data) { console.log("saved question data", d, new_question_json_id) // saved_question_data is undefined if the question is not saved // we should really just requeue the required question for dowload... - if (saved_question_data == undefined || saved_question_data.data.question_json_id != new_question_json_id) { + if (save_question_data == undefined || save_question_data.data.question_json_id != new_question_json_id) { $(`li.cache-item[data-eid="${saved_exam.eid}"]`).addClass( "cache-out-of-date" );