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 (
- {formatPrice(originalPrice)}원 -
- {discountRate !== undefined && item?.price && ( -- {discountRate}% {formatPrice(item.price)}원 -
- )} - > + {hidePrice && discountRate !== undefined && item?.price && ( ++ {discountRate}% {formatPrice(item.price)}원 +
)}