mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-17 16:34:48 -05:00
updateIncorrectQuestions() writes incorrect quiz answers to the 'ongoingIncorrectQuestions' store (defined in db_configs_one.js) under the fixed id 'current', but getIncorrectQuestions() read from a non-existent 'ongoing-incorrect-questions' store and passed no key. Opening a transaction on an undefined store throws NotFoundError, so retrieval could never succeed. Incorrect questions are recorded on every quiz submission today; this makes that data actually retrievable and unblocks re-enabling the 'study past incorrect questions' feature (initiateStudyBtn, currently commented out in index.js). No bundle rebuild needed: the disabled feature is tree-shaken out of book/quarto/tools/scripts/socratiQ/bundle.js, so output is unchanged.