File tree Expand file tree Collapse file tree
src/builtins/instructions_quiz Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ function autofill() {
7373api .setAutofill (autofill)
7474
7575const quizCorrect = computed (() => {
76- // Get all questions from all pages using stepperData with a path filter
77- const allQuestions = api .stepperData (' pages*' ).flatMap ((page ) => page .questions || [])
76+ // Get all questions from all pages using queryStepData with a path filter
77+ const allQuestions = api .queryStepData (' pages*' ).flatMap ((page ) => page .questions || [])
7878
7979 return allQuestions .every ((question ) => {
8080 if (Array .isArray (question .correctAnswer )) {
@@ -109,7 +109,7 @@ const currentPageComplete = computed(() => {
109109function submitQuiz () {
110110 api .recordData ({
111111 phase: ' INSTRUCTIONS_QUIZ' ,
112- questions: api .stepperData (' pages*' ), // Update to use randomized questions
112+ questions: api .queryStepData (' pages*' ), // Update to use randomized questions
113113 persist: api .persist ,
114114 })
115115 if (quizCorrect .value ) {
You can’t perform that action at this time.
0 commit comments