Skip to content

Commit

Permalink
Fix: #279 이미지 삭제 시 파일 변수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoonyesol committed Dec 7, 2024
1 parent d4d043b commit d4c5670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/query/useUserQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function useDeleteProfileImage() {
onError: () => toastError('이미지 삭제에 실패했습니다. 다시 시도해 주세요.'),
onSuccess: () => {
toastSuccess('이미지가 삭제되었습니다.');
editUserInfo({ profileImageName: null });
editUserInfo({ fileName: null });
queryClient.invalidateQueries({ queryKey: userProfileImageQueryKey });
},
});
Expand Down

0 comments on commit d4c5670

Please sign in to comment.