diff --git a/packages/webapp/components/layouts/AccountLayout/Profile/index.tsx b/packages/webapp/components/layouts/AccountLayout/Profile/index.tsx index 5a9834385f..5a92a37898 100644 --- a/packages/webapp/components/layouts/AccountLayout/Profile/index.tsx +++ b/packages/webapp/components/layouts/AccountLayout/Profile/index.tsx @@ -128,13 +128,6 @@ const ProfileIndex = ({ (file?: File, fileName?: string, isCover = false) => { if (isCover) { setCoverImage(fileName); - } - - if (!file) { - return; - } - - if (isCover) { uploadCoverImage({ image: file, }); @@ -163,11 +156,11 @@ const ProfileIndex = ({ your comments and contributions easily!" >
-
+
onImageInputChange(file, fileName, true) } + closeable />
} onChange={(_, file) => onImageInputChange(file)} + closeable />