[구매 옵션 노출관련 처리] #1

- option노출부분에서의 hasMockOption부분 제거
 - checkout넘어갔을시에 목데이터 노출되는부분 변경.
This commit is contained in:
junghoon86.park
2025-11-10 10:59:15 +09:00
parent 3c49242722
commit 761796a785
2 changed files with 35 additions and 14 deletions

View File

@@ -33,7 +33,10 @@ import {
popPanel,
pushPanel,
} from '../../../actions/panelActions';
import { clearAllVideoTimers, finishVideoPreview } from '../../../actions/playActions';
import {
clearAllVideoTimers,
finishVideoPreview,
} from '../../../actions/playActions';
import {
getProductOption,
getProductOptionId,
@@ -463,7 +466,7 @@ const BuyOption = ({
});
// API Mode: 실제 API 호출
if (!isMockMode) {
if (!isMockMode) {
// ⚠️ 필수 값 검증
if (!selectedPatnrId || !selectedPrdtId) {
console.warn('[BuyOption] ⚠️ [getProductOption] MISSING REQUIRED PARAMS', {
@@ -550,7 +553,7 @@ const BuyOption = ({
if (response) {
if (response.retCode === 0) {
// 🔍 조건 체크
// 🔍 조건 체크
const isCardInfoNull = response.data.cardInfo === null;
const isBillingAddressEmpty = response.data.billingAddressList.length === 0;
const isShippingAddressEmpty = response.data.shippingAddressList.length === 0;
@@ -623,7 +626,7 @@ const BuyOption = ({
response.retDetailCode,
response.returnBindStrings
)
);
);
dispatch(changeAppStatus({ isLoading: false }));
return;
}
@@ -1405,7 +1408,7 @@ const BuyOption = ({
{/* 동적 옵션 렌더링 */}
{productOptionInfos &&
productOptionInfos?.length > 0 &&
(productInfo?.optProdYn === 'Y' || hasMockOptions) && (
productInfo?.optProdYn === 'Y' && (
<>
{/* 첫번째 옵션 (여러 옵션이 있을 때만) */}
{productOptionInfos?.length > 1 && (