diff --git a/public/sign/termsCheck.png b/public/sign/termsCheck.png new file mode 100644 index 0000000..887a6a5 Binary files /dev/null and b/public/sign/termsCheck.png differ diff --git a/src/components/signup/PhoneCertification.tsx b/src/components/signup/PhoneCertification.tsx index 5a96f0c..5de7554 100644 --- a/src/components/signup/PhoneCertification.tsx +++ b/src/components/signup/PhoneCertification.tsx @@ -30,7 +30,7 @@ const PhoneCertification = ({ onNext }: PhoneCertificationProps) => { }); const { mutateAsync: phoneVerify } = useMutation( - ({ phoneNumber, code }: { phoneNumber: string; code:string }) => { + ({ phoneNumber, code }: { phoneNumber: string; code: string }) => { return phoneauthverify({ phoneNumber, code }); } ); @@ -114,8 +114,8 @@ const PhoneCertification = ({ onNext }: PhoneCertificationProps) => { if (btnStatus == 'THIRD') { if (validNumber.length != 6) { - console.log(validNumber) - + console.log(validNumber); + setValidNumber(''); setErrorMessage('6자리 코드를 입력해주세요.'); inputRef.current?.focus(); @@ -128,7 +128,7 @@ const PhoneCertification = ({ onNext }: PhoneCertificationProps) => { }); if (status == 'SUCCESS') { - onNext(phoneNumber); + onNext(phoneNumber.replace(/-/g, '')); } } catch (error: any) { const errorResponse = error.response.data; diff --git a/src/pages/signup/index.tsx b/src/pages/signup/index.tsx index 9ee3b24..01d7baa 100644 --- a/src/pages/signup/index.tsx +++ b/src/pages/signup/index.tsx @@ -50,7 +50,7 @@ const SignUpPage = () => { const handlePhoneNumber = (phoneNumber: ApplyValues['memberPhone']) => { setApplyValues((prev) => ({ ...prev, - phoneNumber: phoneNumber, + memberPhone: phoneNumber, step: (prev.step as number) + 1 })); };