Skip to content

Commit 1696e62

Browse files
Merge pull request #136 from InserToken/feat/82-financialChart
/0 오류수정
2 parents e5ea855 + 33c3d1d commit 1696e62

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(sum / scoreList.length);
55+
setAvgScore(scoreList.length == 0 ? 0 : sum / scoreList.length);
5656
// 항목별 만점 기준
5757
const maxScores = {
5858
logic: 15,

0 commit comments

Comments
 (0)