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 });