diff --git a/com.twin.app.shoptime/src/views/DetailPanel/components/BuyOption.jsx b/com.twin.app.shoptime/src/views/DetailPanel/components/BuyOption.jsx index 7004b1b1..717e9f11 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/components/BuyOption.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/components/BuyOption.jsx @@ -1087,6 +1087,46 @@ const BuyOption = ({ optionForUse?.optNm || optionForUse?.prodOptCval || ''; if (!isMock) { + if ( + productOptionInfos && + productOptionInfos.length > 1 && + productInfo?.optProdYn === 'Y' + ) { + + if (selectFirstOptionIndex === 0) { + dispatch( + showError( + null, + "PLEASE SELECT OPTION", + false, + null, + null + ) + ); + + return; + } + } + if ( + productOptionInfos[selectedBtnOptIdx]?.prdtOptDtl && + productOptionInfos[selectedBtnOptIdx]?.prdtOptDtl.length > 1 && + productInfo?.optProdYn === 'Y' + ) { + + if (selectSecondOptionIndex === 0) { + dispatch( + showError( + null, + "PLEASE SELECT OPTION", + false, + null, + null + ) + ); + + return; + } + } dispatch( insertMyinfoCart({ mbrNo: userNumber,