diff --git a/web/src/pages/ExamOnline.tsx b/web/src/pages/ExamOnline.tsx index 89c2ba9..e125d6c 100644 --- a/web/src/pages/ExamOnline.tsx +++ b/web/src/pages/ExamOnline.tsx @@ -288,7 +288,7 @@ const ExamOnline: React.FC = () => { > - {question.options.map((opt) => ( + {(question.options || []).map((opt) => ( {opt.key}. {opt.value} @@ -315,7 +315,7 @@ const ExamOnline: React.FC = () => { > - {question.options.map((opt) => ( + {(question.options || []).map((opt) => ( {opt.key}. {opt.value} diff --git a/web/src/pages/ExamPrint.tsx b/web/src/pages/ExamPrint.tsx index ca3ae82..2681a79 100644 --- a/web/src/pages/ExamPrint.tsx +++ b/web/src/pages/ExamPrint.tsx @@ -210,7 +210,7 @@ const ExamPrint: React.FC = () => {
- {question.options.map((opt) => ( + {(question.options || []).map((opt) => (
{opt.key}. {opt.value}
@@ -237,7 +237,7 @@ const ExamPrint: React.FC = () => {
- {question.options.map((opt) => ( + {(question.options || []).map((opt) => (
{opt.key}. {opt.value}