From d83e9d38f0493d4c31bfddeb9492ae38958b74f5 Mon Sep 17 00:00:00 2001 From: optrader Date: Wed, 17 Dec 2025 08:58:40 +0900 Subject: [PATCH] =?UTF-8?q?[251217]=20fix:=20ProductAllSection=20PRODUCT?= =?UTF-8?q?=20DETAIL=EB=B2=84=ED=8A=BC=20=EC=A1=B0=EA=B1=B4=EB=B6=80=20?= =?UTF-8?q?=EB=A0=8C=EB=8D=94=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ• 컀밋 μ‹œκ°„: 2025. 12. 17. 08:58:40 πŸ“Š λ³€κ²½ 톡계: β€’ 총 파일: 1개 β€’ μΆ”κ°€: +21쀄 β€’ μ‚­μ œ: -11쀄 πŸ“ μˆ˜μ •λœ 파일: ~ com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx πŸ”§ μ£Όμš” λ³€κ²½ λ‚΄μš©: β€’ μ†Œκ·œλͺ¨ κΈ°λŠ₯ κ°œμ„  β€’ μ½”λ“œ 정리 및 μ΅œμ ν™” --- .../ProductAllSection/ProductAllSection.jsx | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx b/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx index ae871bc1..7cb40d02 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx @@ -584,6 +584,11 @@ export default function ProductAllSection({ [productType, themeProductInfo, themeProducts, selectedIndex, productInfo] ); + // ProductDescription 데이터 유무 확인 + const hasProductDescription = useMemo(() => { + return !!productData?.prdtDesc; + }, [productData?.prdtDesc]); + // πŸ†• [251211] patnrId=21인 경우 QR 데이터 확인 useEffect(() => { if (productData?.patnrId === 21 || productData?.patnrId === '21') { @@ -1336,6 +1341,9 @@ export default function ProductAllSection({ ); const handleProductDetailsClick = useCallback(() => { + // μ œν’ˆ μ„€λͺ… 데이터가 없을 λ•Œ 클릭 λ°©μ§€ + if (!hasProductDescription) return; + dispatch(minimizeModalMedia()); scrollToSection('scroll-marker-product-details'); @@ -1344,7 +1352,7 @@ export default function ProductAllSection({ setTimeout(() => { Spotlight.focus('product-description-content'); }, 100); - }, [scrollToSection, dispatch, handleIndicatorOptions]); + }, [scrollToSection, dispatch, handleIndicatorOptions, hasProductDescription]); const handleYouMayAlsoLikeClick = useCallback(() => { dispatch(minimizeModalMedia()); @@ -1961,16 +1969,18 @@ export default function ProductAllSection({ className={css.actionButtonsWrapper} spotlightId="product-info-button-container" > - - {$L('PRODUCT DETAILS')} - + {hasProductDescription && ( + + {$L('PRODUCT DETAILS')} + + )} {isReviewDataComplete && ( <> {/*