[DetailPanel] add optional chaning for isUnavailableProductVisible in ShowProduct.jsx

This commit is contained in:
younghoon100.park
2024-07-30 16:25:54 +09:00
parent 4ced122ee3
commit d7a78321d8

View File

@@ -197,7 +197,7 @@ export default function ShowOption({
return (
showProductInfo &&
productInfo &&
(productInfo[selectedIndex].pmtSuptYn === "N" || webOSVersion < "6.0")
(productInfo[selectedIndex]?.pmtSuptYn === "N" || webOSVersion < "6.0")
);
}, [showProductInfo, productInfo, webOSVersion, selectedIndex]);