Skip to content

Commit

Permalink
fix :: 점수 미리보기를 자연수로 표시
Browse files Browse the repository at this point in the history
  • Loading branch information
kimeojin35 committed Aug 21, 2024
1 parent 1b24ea0 commit 2733118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Grade/GradePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const GradePreview = ({
return (
<CurrentGrades>
<Text size="body1" color="realBlack" style={{ fontWeight: 700 }}>
총: {gradeScore * 1.75 + attendenceScore + volunteerScore}/{maxScore}
총: {Math.floor(gradeScore * 1.75 + attendenceScore + volunteerScore)}/{maxScore}
</Text>
<Text size="body2" color="realBlack" style={{ fontWeight: 500 }}>
성적 점수: {gradeScore * 1.75}/{maxScore - 30}
성적 점수: {Math.floor(gradeScore * 1.75)}/{maxScore - 30}
</Text>
<Text size="body2" color="realBlack" style={{ fontWeight: 500 }}>
출석 점수: {attendenceScore}/15
Expand Down

0 comments on commit 2733118

Please sign in to comment.