Skip to content

Commit

Permalink
오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ipcgrdn committed Dec 20, 2024
1 parent 23aeb36 commit c9536b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/modal/profileEdit-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ const ProfileEditModal = () => {
const profileImageUrl = await uploadToS3(file);
requestData.profileImage = profileImageUrl;
} catch (error) {
toast.error("이미지 업로드에 실패했습니다.");
toast.error(`이미지 업로드에 실패했습니다. ${error}`);
return;
}
}

const filteredRequestData = Object.fromEntries(
Object.entries(requestData).filter(
([_, value]) => value !== null && value !== "" && value !== undefined
([, value]) => value !== null && value !== "" && value !== undefined
)
);

Expand Down

0 comments on commit c9536b8

Please sign in to comment.