diff --git a/src/app/(protected)/[classSlug]/quizzes/[quizId]/page.tsx b/src/app/(protected)/[classSlug]/quizzes/[quizId]/page.tsx index 19d3af0..e050800 100644 --- a/src/app/(protected)/[classSlug]/quizzes/[quizId]/page.tsx +++ b/src/app/(protected)/[classSlug]/quizzes/[quizId]/page.tsx @@ -196,9 +196,7 @@ export default function QuizStudyPage() { quiz={quiz} retakeIds={retakeIds} onFinished={() => { - setRetakeIds(null); - fetchQuizAndAttempts(); - setView("history"); + router.push(`/${classSlug}/quizzes`); }} /> )}