From d00fae684b4067d058a47854b55bdfaa8671b5a2 Mon Sep 17 00:00:00 2001 From: keyy1315 Date: Wed, 6 Aug 2025 13:43:03 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8B=A4=EC=A4=91=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EA=B8=B0=ED=83=80=20?= =?UTF-8?q?=EC=84=A0=ED=83=9D=20=EC=B4=88=EA=B8=B0=ED=99=94=20=EA=B0=92=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/survey-sale/detail/RoofForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/survey-sale/detail/RoofForm.tsx b/src/components/survey-sale/detail/RoofForm.tsx index 37b84eb..353de95 100644 --- a/src/components/survey-sale/detail/RoofForm.tsx +++ b/src/components/survey-sale/detail/RoofForm.tsx @@ -530,7 +530,7 @@ const MultiCheck = ({ /** 다중 선택 처리 */ const handleCheckbox = (item: { id: number; code: string | null; name: string }) => { - const isOtherSelected = Boolean(etcValue) + const isOtherSelected = etcValue !== null let newValue: string[] if (selectedValues.includes(item.code ?? String(item.id))) { @@ -556,7 +556,7 @@ const MultiCheck = ({ if (isRoofMaterial) { /** 지붕 재료 기타 선택 포함 최대 2개 선택 처리 */ - if (selectedValues.length >= 2) { + if (!isOtherSelected && selectedValues.length >= 2) { showErrorAlert(WARNING_MESSAGE.ROOF_MATERIAL_MAX_SELECT) setEtcValue(null) return