From 25a68db39a8b58ba0dff6c1b83d62c43de42c1d5 Mon Sep 17 00:00:00 2001 From: Yeonseo-Jo Date: Thu, 28 Mar 2024 01:43:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20KR=EB=AA=A8=EB=8B=AC=20switch=20case=20?= =?UTF-8?q?=EA=B8=B0=EC=A4=80=20=EA=B5=AC=EC=A1=B0=EB=B6=84=ED=95=B4?= =?UTF-8?q?=ED=95=A0=EB=8B=B9=20=ED=99=9C=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MainDashBoard/components/editModeModal/AddKrModal.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/MainDashBoard/components/editModeModal/AddKrModal.tsx b/src/MainDashBoard/components/editModeModal/AddKrModal.tsx index 89da1ac0..5e0c0f13 100644 --- a/src/MainDashBoard/components/editModeModal/AddKrModal.tsx +++ b/src/MainDashBoard/components/editModeModal/AddKrModal.tsx @@ -54,7 +54,7 @@ const AddKrModal = ({ modalRef, objInfo, krIdx, mutateFcn }: IAddKrModalProps) = let newValue; switch (targetInputName) { - case KR_INPUT_DATA.INPUT_NAME.INPUT_TARGET: + case INPUT_TARGET: if (parsedValue.length === maxLength + 1) { setIsValidMax({ ...isValidMax, [targetInputName]: true }); } @@ -67,9 +67,6 @@ const AddKrModal = ({ modalRef, objInfo, krIdx, mutateFcn }: IAddKrModalProps) = newValue = parsedValue.replace(/\B(?=(\d{3})+(?!\d))/g, ','); break; - newValue = parsedValue.replace(/\B(?=(\d{3})+(?!\d))/g, ','); - break; - default: if (e.target.value.length > maxLength) { setIsValidMax({ ...isValidMax, [targetInputName]: true });