diff --git a/web/experience/src/app/courses/[id]/lessons/[lessonId]/page.tsx b/web/experience/src/app/courses/[id]/lessons/[lessonId]/page.tsx index 9c4d04a..3a9a937 100644 --- a/web/experience/src/app/courses/[id]/lessons/[lessonId]/page.tsx +++ b/web/experience/src/app/courses/[id]/lessons/[lessonId]/page.tsx @@ -388,12 +388,12 @@ export default function LessonPlayerPage({ params }: { params: { id: string, les if (user) { try { // Submit the score for this specific quiz block - const res = await lmsApi.submitLessonScore( + const res = await lmsApi.submitScore( user.id, params.id, params.lessonId, score, - { + { quiz_answers: { [block.id]: answers }, quiz_type: block.quiz_data?.test_type || 'quiz', } diff --git a/web/experience/src/components/blocks/QuizPlayer.tsx b/web/experience/src/components/blocks/QuizPlayer.tsx index 98a06ce..e90115d 100644 --- a/web/experience/src/components/blocks/QuizPlayer.tsx +++ b/web/experience/src/components/blocks/QuizPlayer.tsx @@ -151,7 +151,7 @@ export default function QuizPlayer({ }; // Submit to LMS API - await lmsApi.submitLessonScore(courseId, lessonId, calculatedScore, answersMetadata); + await lmsApi.submitScore(userId, courseId, lessonId, calculatedScore, answersMetadata); setSubmitted(true); setAttempts(prev => prev + 1);