[디테일] 구매부분 수정
- select option 추가로 인한 인덱스 -1 처리.
This commit is contained in:
@@ -445,7 +445,7 @@ const BuyOption = ({
|
||||
|
||||
// 첫번째 옵션 선택 핸들러 (SingleOption과 동일)
|
||||
const handleFirstOptionSelect = (selected) => {
|
||||
const optionValIdx = selected.selected;
|
||||
const optionValIdx = selected.selected - 1;
|
||||
console.log('[BuyOption] First option selected:', optionValIdx);
|
||||
|
||||
setSelectedBtnOptIdx(optionValIdx);
|
||||
@@ -457,7 +457,7 @@ const BuyOption = ({
|
||||
|
||||
// 두번째 옵션 선택 핸들러 (SingleOption과 동일)
|
||||
const handleSecondOptionSelect = (selected) => {
|
||||
const index = selected.selected;
|
||||
const index = selected.selected - 1;
|
||||
console.log('[BuyOption] Second option selected:', index);
|
||||
setSelectedOptionItemIndex(index);
|
||||
setSelectedOptions(
|
||||
|
||||
Reference in New Issue
Block a user