Browse Source

fix type error

Michael Wang 3 năm trước cách đây
mục cha
commit
a196d13a91
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/features/OnlinePractice/ExamPaperPreview.vue

+ 2 - 2
src/features/OnlinePractice/ExamPaperPreview.vue

@@ -165,7 +165,7 @@ function parseRightAnswer(
 }
 function parseStudentAnswer(
   questionType: string,
-  studentAnswer: string,
+  studentAnswer: string | null,
   optionPermutation: number[] | undefined
 ) {
   if (!studentAnswer) return "";
@@ -186,7 +186,7 @@ function parseStudentAnswer(
 }
 function equalAnswer(
   questionType: string,
-  studentAnswer: string,
+  studentAnswer: string | null,
   rightAnswer: string[] | undefined
 ) {
   if (!rightAnswer) return null;