1 parent ad53461 commit d2dddc5Copy full SHA for d2dddc5
2 files changed
client/src/components/QuizArea.tsx
@@ -1,4 +1,4 @@
1
-import { motion, AnimatePresence } from "framer-motion";
+import { motion, AnimatePresence } from "motion/react";
2
import { type QuizAreaProps } from "@/types/quiz";
3
import { useIsMobile } from "@/hooks/useIsMobile";
4
client/src/routes/Quiz/QuizResults.tsx
@@ -38,6 +38,11 @@ export const QuizResults = () => {
38
try {
39
const response = await getQuizResults(quizId);
40
if (response.success) {
41
+ if (!response.data.found) {
42
+ toast.error("Quiz results not found or have expired.");
43
+ navigate("/");
44
+ return;
45
+ }
46
const mappedData = {
47
...response.data,
48
id: response.data.id || response.data.quizId || quizId,
0 commit comments