From 0b23b2a999796cf9baf6968599abfe9357e595fd Mon Sep 17 00:00:00 2001 From: Bigben2002 Date: Sun, 31 May 2026 18:04:12 +0900 Subject: [PATCH 1/3] =?UTF-8?q?[fix]=20=EA=B2=BD=EB=A7=A4=20=EB=A6=AC?= =?UTF-8?q?=EB=B7=B0=20=ED=8F=89=EC=A0=90=20=EC=97=B0=EB=8F=99=20=EB=B0=8F?= =?UTF-8?q?=20=EA=B1=B0=EB=9E=98=20=ED=9A=9F=EC=88=98=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/products/[productId]/index.tsx | 9 +++++---- src/services/auction/detail/types.ts | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/products/[productId]/index.tsx b/src/app/products/[productId]/index.tsx index 12ab15c..3050f00 100644 --- a/src/app/products/[productId]/index.tsx +++ b/src/app/products/[productId]/index.tsx @@ -245,10 +245,11 @@ export default function ProductDetailScreen({ }, [showToast]); const displaySellerBio = productData?.seller?.bio ?? "정보없음"; + const sellerRating = + auctionDetail?.seller?.rating ?? productData?.seller?.rating; + const displaySellerRating = - productData?.seller?.rating == null - ? "정보없음" - : productData.seller.rating.toFixed(1); + sellerRating == null ? "정보없음" : sellerRating.toFixed(1); const displaySellerWarning = productData?.seller?.warningCount == null ? "정보없음" @@ -753,7 +754,7 @@ export default function ProductDetailScreen({ {displaySellerRating === "정보없음" ? "정보없음" - : `${displaySellerRating} (거래 ${sellerRecentSales.length}건)`} + : displaySellerRating} diff --git a/src/services/auction/detail/types.ts b/src/services/auction/detail/types.ts index 1f7d7d3..9093643 100644 --- a/src/services/auction/detail/types.ts +++ b/src/services/auction/detail/types.ts @@ -17,6 +17,7 @@ export interface AuctionDetailSeller { memberId: number; nickname: string; profileImageUrl: string | null; + rating?: number | null; } export interface AuctionDetailResponse { From 1970eebe4a728c2a9a39602a6e428a5216a22888 Mon Sep 17 00:00:00 2001 From: Bigben2002 Date: Sun, 31 May 2026 18:19:48 +0900 Subject: [PATCH 2/3] =?UTF-8?q?[fix]=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=EB=AA=A8=EB=8B=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/products/[productId]/index.tsx | 43 ++------------------------ 1 file changed, 3 insertions(+), 40 deletions(-) diff --git a/src/app/products/[productId]/index.tsx b/src/app/products/[productId]/index.tsx index 3050f00..7242a32 100644 --- a/src/app/products/[productId]/index.tsx +++ b/src/app/products/[productId]/index.tsx @@ -255,15 +255,6 @@ export default function ProductDetailScreen({ ? "정보없음" : `${productData.seller.warningCount}회`; const displaySellerAddress = displayLocation; - const sellerRecentSales = productData?.seller?.recentSales ?? []; - - function formatSellerRecentSalePrice(price?: number | null) { - if (price == null) { - return "정보없음"; - } - - return `${price.toLocaleString()}원`; - } useEffect(() => { if (regularPrice != null) { @@ -948,9 +939,6 @@ export default function ProductDetailScreen({

{displaySellerName}

-

- {displaySellerBio} -

@@ -979,34 +967,9 @@ export default function ProductDetailScreen({
-

상대 판매내역 (최근 3건)

-
- {sellerRecentSales.length === 0 ? ( -
- 정보없음 -
- ) : ( - sellerRecentSales.map((item, idx) => ( -
- - {item.title ?? "정보없음"} - -
-

- {formatSellerRecentSalePrice(item.price)} -

-

- {item.status ?? "정보없음"} -

-
-
- )) - )} +

소개글

+
+ {displaySellerBio}
From 07406d4b275f65f92d3e1ea91cac0e53e18c455c Mon Sep 17 00:00:00 2001 From: Bigben2002 Date: Sun, 31 May 2026 18:56:15 +0900 Subject: [PATCH 3/3] chore(product-detail): read seller.bio from auction/product and show in profile modal (remove recent-sales) --- src/app/products/[productId]/index.tsx | 4 +++- src/services/auction/detail/types.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/products/[productId]/index.tsx b/src/app/products/[productId]/index.tsx index 7242a32..fd6a644 100644 --- a/src/app/products/[productId]/index.tsx +++ b/src/app/products/[productId]/index.tsx @@ -244,7 +244,9 @@ export default function ProductDetailScreen({ showToastRef.current = showToast; }, [showToast]); - const displaySellerBio = productData?.seller?.bio ?? "정보없음"; + const sellerBio = auctionDetail?.seller?.bio ?? productData?.seller?.bio; + const displaySellerBio = + sellerBio == null || sellerBio.trim() === "" ? "정보없음" : sellerBio; const sellerRating = auctionDetail?.seller?.rating ?? productData?.seller?.rating; diff --git a/src/services/auction/detail/types.ts b/src/services/auction/detail/types.ts index 9093643..7d1fbad 100644 --- a/src/services/auction/detail/types.ts +++ b/src/services/auction/detail/types.ts @@ -18,6 +18,7 @@ export interface AuctionDetailSeller { nickname: string; profileImageUrl: string | null; rating?: number | null; + bio?: string | null; } export interface AuctionDetailResponse {