Skip to content

Commit

Permalink
Merge branch 'feat/profile-edit-image' into feat/profile-edit-image-b…
Browse files Browse the repository at this point in the history
…ottom-sheet
  • Loading branch information
wokbjso authored Aug 26, 2024
2 parents 63c45c6 + 301c1ab commit 169a259
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion features/profile/components/organisms/my-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export function MyProfile({
}: {
profileData: ProfileProps['data'];
}) {
console.log(profileData);
const [selectedTab, setSelectedTab] = useState<ProfileType>('statistics');

return (
Expand Down
8 changes: 3 additions & 5 deletions features/profile/components/organisms/profile-edit-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ export function ProfileEditForm() {
const onSubmit: SubmitHandler<ProfileEditFormProps> = async (data) => {
console.log(data);
if (imageFile) {
const getProfileImagePresignedUrlRes = await getProfileImagePresignedUrl(
imageFile.name,
);
const { data } = await getProfileImagePresignedUrl(imageFile.name);
await imagePresign({
presignedUrl: getProfileImagePresignedUrlRes.data.presignedUrl,
presignedUrl: data.presignedUrl,
file: getBlobData(imageFile),
});
await profileImageUrlDone(getProfileImagePresignedUrlRes.data.imageName);
await profileImageUrlDone(data.imageName);
}
};

Expand Down

0 comments on commit 169a259

Please sign in to comment.