From aec59e7a71d6d31a6192c10ec7ea9cd82a572f84 Mon Sep 17 00:00:00 2001 From: doyupK Date: Thu, 21 Sep 2023 00:57:42 +0900 Subject: [PATCH] fix. product price handling --- apps/web/src/components/market/marketCard/marketCard.tsx | 2 +- .../components/marketDetailHeader/marketDetailHeader.tsx | 2 +- apps/web/src/components/market/marketRow/marketRow.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/components/market/marketCard/marketCard.tsx b/apps/web/src/components/market/marketCard/marketCard.tsx index 5a859dc0..0052e7ec 100644 --- a/apps/web/src/components/market/marketCard/marketCard.tsx +++ b/apps/web/src/components/market/marketCard/marketCard.tsx @@ -192,7 +192,7 @@ const MarketColumn = ( {price && price === 1 ? '판매 완료' - : price !== 1 + : price !== 0 ? `${formatter(price * 10000)}원` : '상담'} diff --git a/apps/web/src/components/market/marketDetail/components/marketDetailHeader/marketDetailHeader.tsx b/apps/web/src/components/market/marketDetail/components/marketDetailHeader/marketDetailHeader.tsx index d25988cf..1f3031b6 100644 --- a/apps/web/src/components/market/marketDetail/components/marketDetailHeader/marketDetailHeader.tsx +++ b/apps/web/src/components/market/marketDetail/components/marketDetailHeader/marketDetailHeader.tsx @@ -104,7 +104,7 @@ const MarketDetailHeader = ({

{price && price === 1 ? '판매 완료' - : price !== 1 + : price !== 0 ? `${formatter(price * 10000)}원` : '상담'}

diff --git a/apps/web/src/components/market/marketRow/marketRow.tsx b/apps/web/src/components/market/marketRow/marketRow.tsx index d7b88cb4..95b982b8 100644 --- a/apps/web/src/components/market/marketRow/marketRow.tsx +++ b/apps/web/src/components/market/marketRow/marketRow.tsx @@ -205,7 +205,7 @@ const MarketRow = ({ {price && price === 1 ? '판매 완료' - : price !== 1 + : price !== 0 ? `${formatter(price * 10000)}원` : '상담'}