Skip to content

Commit

Permalink
Try to fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed Jul 11, 2024
1 parent 2f7d0b9 commit ea44948
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions static/js/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ $(document).ready(function () {
function updateBoxes() {
const input = $('#inputBox').val();
const currentKey = questionKeys[currentQuestionIndex];

if (!question) {
console.error('Question not found for key: ', currentKey);
return;
}

const correctAnswer = questions[currentKey].translation;

for (let i = 0; i < correctAnswer.length; i++) {
Expand Down

0 comments on commit ea44948

Please sign in to comment.