From 6668c13b09f2e4e678fe4647bb20366dc3421458 Mon Sep 17 00:00:00 2001 From: pranalidhanavade Date: Wed, 11 Oct 2023 16:35:11 +0530 Subject: [PATCH] refactor:edit ecosystem modal Signed-off-by: pranalidhanavade --- src/components/EditEcosystemOrgModal/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/EditEcosystemOrgModal/index.tsx b/src/components/EditEcosystemOrgModal/index.tsx index 9413fcaa4..9b2891547 100644 --- a/src/components/EditEcosystemOrgModal/index.tsx +++ b/src/components/EditEcosystemOrgModal/index.tsx @@ -39,7 +39,7 @@ const EditPopupModal = (props: EditEntityModalProps) => { }); const [loading, setLoading] = useState(false); - const [isImageEmpty, setIsImageEmpty] = useState(false); + const [isImageEmpty, setIsImageEmpty] = useState(true); const [initialEntityData, setInitialEntityData] = useState({ name: "", description: "", @@ -72,7 +72,7 @@ const EditPopupModal = (props: EditEntityModalProps) => { }); setLogoImage({ - logoFile: "", + logoFile: "", imagePreviewUrl: "", fileName: "", }); @@ -126,7 +126,7 @@ const EditPopupModal = (props: EditEntityModalProps) => { setImgError(''); const reader = new FileReader(); const file = event?.target?.files; - + const fileSize = Number((file[0]?.size / 1024 / 1024)?.toFixed(2)); const extension = file[0]?.name?.substring(file[0]?.name?.lastIndexOf(".") + 1)?.toLowerCase();