Skip to content

Commit

Permalink
fix : 회원가입 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
banhogu committed May 17, 2024
1 parent e34af6c commit ee9d0c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file added public/sign/termsCheck.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/components/signup/PhoneCertification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
);
Expand Down Expand Up @@ -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();
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/signup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const SignUpPage = () => {
const handlePhoneNumber = (phoneNumber: ApplyValues['memberPhone']) => {
setApplyValues((prev) => ({
...prev,
phoneNumber: phoneNumber,
memberPhone: phoneNumber,
step: (prev.step as number) + 1
}));
};
Expand Down

0 comments on commit ee9d0c9

Please sign in to comment.