Commit 04f26a91 authored by 한규민's avatar 한규민
Browse files

signup완성

parent 5705d7c5
...@@ -94,9 +94,10 @@ const Signup = () => { ...@@ -94,9 +94,10 @@ const Signup = () => {
// 비밀번호 확인 에러유무 검사 // 비밀번호 확인 에러유무 검사
vaildationData(userText.userRePassword, userText.userPassword, "errorRePassword"); vaildationData(userText.userRePassword, userText.userPassword, "errorRePassword");
const errorArray = Object.values(errors);
// 최종 유효성 검사 // 최종 유효성 검사
if (overlapId && (errors.errorId === false) && (errors.errorName === false) && (errors.errorBirthday === false) if (overlapId && (errorArray.some((element) => (element)) === false)) {
&& (errors.errorMbnum === false) && (errors.errorPassword === false) && (errors.errorRePassword === false)) {
console.log(userText); console.log(userText);
setTimeout(()=>{console.log("회원가입을 완료했습니다.")},2000) setTimeout(()=>{console.log("회원가입을 완료했습니다.")},2000)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment