diff --git a/src/app/shared/[classSlug]/[type]/[token]/page.tsx b/src/app/shared/[classSlug]/[type]/[token]/page.tsx index c3a295e..015e9de 100644 --- a/src/app/shared/[classSlug]/[type]/[token]/page.tsx +++ b/src/app/shared/[classSlug]/[type]/[token]/page.tsx @@ -87,11 +87,6 @@ export default async function SharedPage(props: SharedPageProps) { }} retakeIds={null} isShared={true} - onFinished={() => { - // In shared mode, finishes local results display, when closed we can reload - // but QuizViewer doesn't handle the restart well in shared mode if we just close. - // We'll let it stay on results or the user can refresh. - }} /> )} diff --git a/src/components/quizzes/QuizResults.tsx b/src/components/quizzes/QuizResults.tsx index 4eaf406..8c13400 100644 --- a/src/components/quizzes/QuizResults.tsx +++ b/src/components/quizzes/QuizResults.tsx @@ -9,7 +9,7 @@ interface QuizResultsProps { quiz: any; // QuizData attempt: any; // QuizAttempt onRetake: (missedIds: string[]) => void; - onClose: () => void; + onClose?: () => void; } export function QuizResults({ quiz, attempt, onRetake, onClose }: QuizResultsProps) { @@ -72,12 +72,14 @@ export function QuizResults({ quiz, attempt, onRetake, onClose }: QuizResultsPro