From edf3da42e6f4fd01a70f4e8002d870bd59726ec9 Mon Sep 17 00:00:00 2001 From: parkyejin Date: Thu, 22 Aug 2024 22:32:40 +0900 Subject: [PATCH] =?UTF-8?q?fix(#48):=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/auth/UserProfileUpdate.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/auth/UserProfileUpdate.tsx b/src/components/auth/UserProfileUpdate.tsx index 3c75a36..d10fc71 100644 --- a/src/components/auth/UserProfileUpdate.tsx +++ b/src/components/auth/UserProfileUpdate.tsx @@ -102,7 +102,11 @@ const UserProfileUpdate = ({ onUpdate }: UserProfileUpdateProps) => { setProfileImgUrl(defaultImageUrl) }, onError: () => { - showToast('기본 이미지는 삭제할 수 없습니다.') + if (profileImgUrl !== profile?.profileImgUrl) { + setProfileImgUrl(defaultImageUrl) + } else { + showToast('기본 이미지는 삭제할 수 없습니다.') + } }, }) }