Skip to content

Commit

Permalink
refactor: 코드 이해를 위한 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
D0Dam committed Nov 14, 2023
1 parent dd72fec commit cb74e48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/ShopDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function ShopDetail() {
<div>
<div className={styles['detail-main__rate']}>
<StarRatingPreview rate={totalRating} />
{/* totalRating이 -1인 경우는 아예 별점이 없는 경우를 의미합니다. */}
<span>{totalRating === -1 ? '0.0' : totalRating.toFixed(1)}</span>
</div>
<div className={styles['detail-main__name']}>
Expand Down

0 comments on commit cb74e48

Please sign in to comment.