From c1fff61f4e72a22ad3699427743fdf149f8966bb Mon Sep 17 00:00:00 2001 From: andrewtan2000 Date: Tue, 27 Aug 2024 21:40:15 +0800 Subject: [PATCH] Message when no questions generated --- app/(main)/quiz/page.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/(main)/quiz/page.tsx b/app/(main)/quiz/page.tsx index f370056..8aebd1c 100644 --- a/app/(main)/quiz/page.tsx +++ b/app/(main)/quiz/page.tsx @@ -252,7 +252,7 @@ const QuizPage: React.FC = () => {
Quizzes
-
+ {quiz && Array.isArray(quiz.mcqs) && quiz.mcqs.length === 0 && ( +
No questions generated.
+ )} {!isQuizOngoing && (