diff --git "a/src/pages/onboarding/components/commonOnboarding/Step\352\260\234\354\235\270\354\240\225\353\263\264\354\236\205\353\240\245.tsx" "b/src/pages/onboarding/components/commonOnboarding/Step\352\260\234\354\235\270\354\240\225\353\263\264\354\236\205\353\240\245.tsx" index dbe0afb0..de8f22f3 100644 --- "a/src/pages/onboarding/components/commonOnboarding/Step\352\260\234\354\235\270\354\240\225\353\263\264\354\236\205\353\240\245.tsx" +++ "b/src/pages/onboarding/components/commonOnboarding/Step\352\260\234\354\235\270\354\240\225\353\263\264\354\236\205\353\240\245.tsx" @@ -63,12 +63,13 @@ const Step개인정보입력 = () => { }; const handleClickLink = () => { - if (!res || !imageFile) return; - imageUploadMutate({ url: res.url, image: imageFile }); + if (res && imageFile) { + imageUploadMutate({ url: res.url, image: imageFile }); + } setData((prev) => ({ ...prev, imageFile, - image: res.fileName, + image: imageFile ? res.fileName : '', nickname: nickname, isNicknameValid: true, })); diff --git a/src/pages/onboarding/type.ts b/src/pages/onboarding/type.ts index ceb423f3..4f9d41a8 100644 --- a/src/pages/onboarding/type.ts +++ b/src/pages/onboarding/type.ts @@ -14,7 +14,7 @@ export interface JoinPropType { nickname: string; isNicknameValid?: boolean; image: string; - imageFile?: File; + imageFile?: File | null; phoneNumber: string; univName: string; field: string;