l-min-components 1.7.1516 → 1.7.1518

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.1516",
3
+ "version": "1.7.1518",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -99,7 +99,7 @@ const ReportQuestions = ({
99
99
  const question = constants.questions.find(
100
100
  (question) => question.value === questionType
101
101
  );
102
- console.log(question, questionType, answerData, "aaaa");
102
+
103
103
  const commentData = answerData?.answer?.comments;
104
104
  const hasAnswer = answerData?.answer?.data;
105
105
 
@@ -198,13 +198,19 @@ const ReportQuestions = ({
198
198
  {showAIScore && accountType !== "personal" && (
199
199
  <ScoreBadge ai>
200
200
  AI score:{" "}
201
- <span> {loading ? "--" : formatNumber(AIScore) + "%"}</span>
201
+ <span>
202
+ {loading || !hasAnswer ? "--" : formatNumber(AIScore) + "%"}
203
+ </span>
202
204
  </ScoreBadge>
203
205
  )}
204
206
 
205
207
  <ScoreBadge>
206
208
  Instructor’s score:{" "}
207
- <span>{loading ? "--" : formatNumber(intructorScore) + "%"}</span>
209
+ <span>
210
+ {loading || !!hasAnswer
211
+ ? "--"
212
+ : formatNumber(intructorScore) + "%"}
213
+ </span>
208
214
  </ScoreBadge>
209
215
 
210
216
  {(accountType === "instructor-personal" ||
@@ -14,6 +14,7 @@ export const Header = styled.div`
14
14
  cursor: pointer;
15
15
  gap: 16px;
16
16
  height: 30px;
17
+ width: fit-content;
17
18
  h1 {
18
19
  font-size: 22px;
19
20
  font-weight: 700;
@@ -160,6 +161,7 @@ export const Loader = styled.div`
160
161
  place-items: center;
161
162
  min-height: 330px;
162
163
  position: relative;
164
+ padding-bottom: 70px;
163
165
  `;
164
166
  export const QuestionTitle = styled.h2`
165
167
  border-radius: 5px;