l-min-components 1.7.1524 → 1.7.1525

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.7.1524",
3
+ "version": "1.7.1525",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -107,11 +107,13 @@ const ReportQuestions = ({
107
107
  accountType === "instructor-personal" ||
108
108
  accountType === "instructor-affiliate"
109
109
  )
110
- setInstructorScore(answerData?.grading_data?.score);
111
- else setInstructorScore(answerData?.score);
112
- setAIScore(answerData?.ai_score);
110
+ setInstructorScore(answerData?.grading_data?.score || 0);
111
+ else setInstructorScore(answerData?.score || 0);
112
+
113
+ setAIScore(answerData?.ai_score || 0);
113
114
  }
114
115
  }, [findedQuestion?.question_id, questionActivityID, answerData]);
116
+
115
117
  const handleScore = async (value) => {
116
118
  if (!questionActivityID || !enterpriseId || !answerData?.answer?.session_id)
117
119
  return;
@@ -154,7 +156,9 @@ const ReportQuestions = ({
154
156
  };
155
157
  return (
156
158
  <Container>
157
- {gradeQuestionData?.loading && <FullPageLoader fixed hasBackground />}
159
+ {(gradeQuestionData?.loading || loading) && (
160
+ <FullPageLoader fixed hasBackground />
161
+ )}
158
162
  {toggleGrade && (
159
163
  <GradingModal
160
164
  key={questionActivityID}
@@ -228,9 +232,7 @@ const ReportQuestions = ({
228
232
  {/* {data && !hasAnswer && <ErrorHeader />} */}
229
233
 
230
234
  {loading ? (
231
- <Loader>
232
- <FullPageLoader isSectionLoader />
233
- </Loader>
235
+ <Loader></Loader>
234
236
  ) : (
235
237
  <QuestionWrapper>
236
238
  <QuestionContent>