Skip to content

Commit e5f3150

Browse files
committed
queryStepData update
1 parent 0059d39 commit e5f3150

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/builtins/instructions_quiz/InstructionsQuiz.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ function autofill() {
7373
api.setAutofill(autofill)
7474
7575
const 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(() => {
109109
function 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) {

0 commit comments

Comments
 (0)