Skip to content

Commit

Permalink
fix: update number fomatting
Browse files Browse the repository at this point in the history
  • Loading branch information
naji committed Sep 8, 2024
1 parent a1c919a commit 7d0c22c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const Card = ({ product }) => {
className={styles.productImg}
/>
<h3 className={styles.name}>{product.name}</h3>
<p className={styles.price}>{product.price}</p>
<p className={styles.price}>
{`${product.price.toLocaleString("ko-KR")}원`}
</p>
<span className={styles.favorite}>
<img src={heartImg} alt="하트" className={styles.heart} />
{product.favoriteCount}
Expand Down

0 comments on commit 7d0c22c

Please sign in to comment.