[SHOPTIME-3498]

[수정파일]

  1. DetailPanel.jsx
  2. YouMayLike.jsx

[수정내용]

  1.  youmaylike data가 없을 시 랜더링 안되도록 예외처리
This commit is contained in:
고동영
2024-08-27 14:24:26 +09:00
parent a4053c0548
commit 143bbf31e4
2 changed files with 13 additions and 14 deletions

View File

@@ -62,6 +62,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
const localRecentItems = useSelector(
(state) => state.localSettings?.recentItems
);
const youmaylikeData = useSelector((state) => state.main.youmaylikeData);
const { httpHeader } = useSelector((state) => state.common);
const groupInfos = useSelector((state) => state.product.groupInfo);
const { popupVisible, activePopup } = useSelector(
@@ -459,7 +460,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
)}
</TBody>
</TPanel>
{lgCatCd && (productData || themeProductInfos) && (
{lgCatCd && (productData || themeProductInfos) && youmaylikeData && (
<YouMayLike
isUnable={
productData?.pmtSuptYn === "N" ||