l-min-components 1.7.1550 → 1.7.1552

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.1550",
3
+ "version": "1.7.1552",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -77,7 +77,7 @@ const getColor = (aiScore) => {
77
77
  color = "rgba(13, 95, 219, 1)";
78
78
  } else if (aiScore >= 88 && aiScore <= 94) {
79
79
  color = "rgba(13, 125, 150, 1)";
80
- } else if (aiScore >= 95) {
80
+ } else if (aiScore > 94) {
81
81
  color = "rgba(85, 193, 0, 1)";
82
82
  } else {
83
83
  color = "rgba(249, 84, 84, 1)";
@@ -213,6 +213,19 @@ const ReportQuestions = ({
213
213
  <span>{loading ? "--" : formatNumber(AIScore) + "%"}</span>
214
214
  </ScoreBadge>
215
215
  )}
216
+ {noAi &&
217
+ accountType !== "personal" &&
218
+ typeof findedQuestion?.suggested_score === "number" && (
219
+ <ScoreBadge ai>
220
+ {findText("Score:")}{" "}
221
+ <span>
222
+ {loading
223
+ ? "--"
224
+ : formatNumber(findedQuestion?.suggested_score || 0) +
225
+ "%"}
226
+ </span>
227
+ </ScoreBadge>
228
+ )}
216
229
 
217
230
  <ScoreBadge>
218
231
  {findText("Instructor’s score:")}{" "}
@@ -377,6 +390,7 @@ const ReportQuestions = ({
377
390
 
378
391
  <Comment
379
392
  data={comment}
393
+ key={comment?.created_at}
380
394
  testId={testId}
381
395
  setData={setComment}
382
396
  disabledAdd={!hasAnswer}