Skip to content

Commit

Permalink
refactor: 평점 소수점 1자리까지만 나오도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Hain-tain committed Oct 3, 2024
1 parent 302b325 commit 4faadd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ssr/server/routes/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export const renderMovieItem = (movieItems = []) =>
alt="${title}"
/>
<div class="item-desc">
<p class="rate"><img src='${STAR_IMAGE}' alt='' class="star" /><span>${vote_average}</span></p>
<p class="rate"><img src='${STAR_IMAGE}' alt='' class="star" /><span>${
Math.round(movieDetail.vote_average * 10) / 10
}</span></p>
<strong>${title}</strong>
</div>
</div>
Expand Down

0 comments on commit 4faadd1

Please sign in to comment.