Skip to content

Commit

Permalink
회원가입 확인버튼 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
alsendrha committed Jun 2, 2024
1 parent eb3cee9 commit d041e2e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/(auth)/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const SignUp = () => {
const router = useRouter();
const ref = useRef(null);
const emailCheck = useUserEmailCheck();
const nicknameCheck = useUserNicknameCheck();
const phoneCheck = useUserPhoneCheck();
const [signUpUser, setSignUpUser] = useState<SignUpUser>({
request_data: {
email: '',
Expand Down Expand Up @@ -415,8 +417,9 @@ const SignUp = () => {
});
}

const nicknameCheck = useUserNicknameCheck();

const handleNickNameCheck = () => {
if (signUpUser.request_data.nickname === '') return alert('닉네임을 입력해주세요.');
nicknameCheck({ nickname: signUpUser.request_data.nickname }, {
onSuccess: () => {
setUserChecked({
Expand All @@ -427,7 +430,7 @@ const SignUp = () => {
});
}

const phoneCheck = useUserPhoneCheck();

const handlePhoneCheck = () => {
if (signUpUser.request_data.contact === '') return alert('휴대폰 번호를 입력해주세요.');
phoneCheck({ contact: signUpUser.request_data.contact }, {
Expand Down

0 comments on commit d041e2e

Please sign in to comment.