From 0400b0ae50b4afa56abdd100545097827d4e2e53 Mon Sep 17 00:00:00 2001
From: hun
- {device?.price != null - ? new Intl.NumberFormat('ko-KR', { - style: 'currency', - currency: 'KRW', - maximumFractionDigits: 0, - }).format(device.price) - : '-'} + {device?.price != null ? `₩ ${device.price.toLocaleString()}` : '-'}
diff --git a/src/components/RecentlyViewed/RecentlyViewedCard.tsx b/src/components/RecentlyViewed/RecentlyViewedCard.tsx index 7ac255d..b2ab22c 100644 --- a/src/components/RecentlyViewed/RecentlyViewedCard.tsx +++ b/src/components/RecentlyViewed/RecentlyViewedCard.tsx @@ -34,13 +34,7 @@ const RecentlyViewedCard = ({ device, onClick, className }: RecentlyViewedCardPr {/* 가격 - 16px, SemiBold */}- {device.priceKrw != null - ? new Intl.NumberFormat('ko-KR', { - style: 'currency', - currency: 'KRW', - maximumFractionDigits: 0, - }).format(device.priceKrw) - : '-'} + {device.priceKrw != null ? `₩ ${device.priceKrw.toLocaleString()}` : '-'}