diff --git a/src/api/common.js b/src/api/common.js index a67f201..2ab3400 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -53,6 +53,7 @@ async function authorizedFetch(method, url, options = {}) { const headers = { 'Content-Type': 'application/json', 'Accept': 'application/json', + 'ngrok-skip-browser-warning': 'true', ...options.headers, }; if (accessToken) { diff --git a/src/pages/MainPage/components/ProductCard.jsx b/src/pages/MainPage/components/ProductCard.jsx index fbb7e00..ac77eac 100644 --- a/src/pages/MainPage/components/ProductCard.jsx +++ b/src/pages/MainPage/components/ProductCard.jsx @@ -30,9 +30,8 @@ function ProductCard({ item, hidePrice = false, originalPrice, discountRate }) { return (
{/* 순위 아이콘 (rank가 있을 때만 표시) */} {item?.rank && ( @@ -65,17 +64,10 @@ function ProductCard({ item, hidePrice = false, originalPrice, discountRate }) { {item?.price ? `${formatPrice(item.price)}원` : ""}

)} - {hidePrice && originalPrice && ( - <> -

- {formatPrice(originalPrice)}원 -

- {discountRate !== undefined && item?.price && ( -

- {discountRate}% {formatPrice(item.price)}원 -

- )} - + {hidePrice && discountRate !== undefined && item?.price && ( +

+ {discountRate}% {formatPrice(item.price)}원 +

)}
diff --git a/src/pages/MainPage/components/RecommendTab.jsx b/src/pages/MainPage/components/RecommendTab.jsx index fec7059..5d990c2 100644 --- a/src/pages/MainPage/components/RecommendTab.jsx +++ b/src/pages/MainPage/components/RecommendTab.jsx @@ -21,7 +21,7 @@ function RecommendTab() { const mapped = list.map((item) => ({ id: item.id, image: item.image || null, // 이미지 없으면 빈 자리 유지 - sellerName: item.seller_id ? `판매자 ${item.seller_id}` : "", + sellerName: item.seller_nickname ? `${item.seller_nickname}` : "", description: item.title || "", price: item.price || 0, }));