dm_new: 우편번호 추가
This commit is contained in:
@@ -64,8 +64,8 @@ export default function LoginModal({ open, onClose, onSuccess }: LoginModalProps
|
||||
}, [open, onClose]);
|
||||
|
||||
useEffect(() => {
|
||||
if (noWorker) {
|
||||
setWorkerNo("");
|
||||
if (noWorker) { // 종사업자번호 해당없음
|
||||
setWorkerNo(""); // 종사업자번호
|
||||
setErrors((p) => {
|
||||
const nextErrors = { ...p };
|
||||
delete nextErrors.workerNo;
|
||||
@@ -127,7 +127,7 @@ export default function LoginModal({ open, onClose, onSuccess }: LoginModalProps
|
||||
markAllTouched();
|
||||
|
||||
const v = validate();
|
||||
if (Object.keys(v).length) return;
|
||||
if (Object.keys(v).length) return; //검증 에러가 하나라도 있으면 로그인 요청을 중단
|
||||
|
||||
try {
|
||||
setSubmitting(true);
|
||||
|
||||
Reference in New Issue
Block a user