From 7bbf129e06d190145d0a4d9a7d4c7399d2112f88 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 30 Dec 2021 03:41:30 +0100 Subject: [PATCH] word/multichoice: skip imageless (unanswerable) questions --- word/multichoice.js | 1 + 1 file changed, 1 insertion(+) diff --git a/word/multichoice.js b/word/multichoice.js index 761b966..61a7b5a 100644 --- a/word/multichoice.js +++ b/word/multichoice.js @@ -1,6 +1,7 @@ class WordMultiChoice extends WordQuiz { next() { let word = this.words.shift(); + if (!word[2]) return this.next(); let form = put(this.form, '+img[src=$]+ul', `/data/word/en/${word[2]}.jpg`, ); -- 2.30.0