diff --git a/src/pages/content-management/AddNewLessonPage.tsx b/src/pages/content-management/AddNewLessonPage.tsx index 5ab04e6..94675cb 100644 --- a/src/pages/content-management/AddNewLessonPage.tsx +++ b/src/pages/content-management/AddNewLessonPage.tsx @@ -195,10 +195,7 @@ export function AddNewLessonPage() { return null }, [introVideoUrl]) - const populatedQuestions = useMemo( - () => questions.filter((question) => question.questionText.trim().length > 0), - [questions], - ) + const reviewQuestions = useMemo(() => questions, [questions]) const addQuestion = () => setQuestions((prev) => [...prev, createEmptyQuestion(String(Date.now()))]) const removeQuestion = (id: string) => setQuestions((prev) => (prev.length > 1 ? prev.filter((q) => q.id !== id) : prev)) @@ -539,7 +536,7 @@ export function AddNewLessonPage() {

Questions - {populatedQuestions.length} + {reviewQuestions.length}