From ee9d0c989ce7779013d8cbfe9afd5194d20b2d7c Mon Sep 17 00:00:00 2001 From: hojin Date: Fri, 17 May 2024 17:03:22 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/sign/termsCheck.png | Bin 0 -> 370 bytes src/components/signup/PhoneCertification.tsx | 8 ++++---- src/pages/signup/index.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 public/sign/termsCheck.png diff --git a/public/sign/termsCheck.png b/public/sign/termsCheck.png new file mode 100644 index 0000000000000000000000000000000000000000..887a6a5b51491f3c89bec70f2d433b2a4fa1baaf GIT binary patch literal 370 zcmV-&0ge8NP)sg4HM+j(RY3Mzwl1w)W3a0UAyOg5%h#Zn~g1}p(eOKom zDvCyA(@rWS0wmcClHaY)SI%?Wv-oRR1oB?`>U5Bxc7b$Q3VKtw_veNp5B=Ad17;Qs z&<~RD { }); 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 })); };