Skip to content

Commit 00969ce

Browse files
avg 수정
1 parent 1d894d8 commit 00969ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/blocks/MyPagePractice/MyPagePractice.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function MyPagePracticeClient() {
5252
(acc, cur) => acc + (cur.score ?? 0),
5353
0
5454
);
55-
setAvgScore(scoreList.length == 0 ? 0 : sum / scoreList.length);
55+
setAvgScore(scoreList.length === 0 ? 0 : parseFloat((sum / scoreList.length).toFixed(1)));
5656
// 항목별 만점 기준
5757
const maxScores = {
5858
logic: 15,

0 commit comments

Comments
 (0)