Skip to content

Commit

Permalink
refactor:edit ecosystem modal
Browse files Browse the repository at this point in the history
Signed-off-by: pranalidhanavade <[email protected]>
  • Loading branch information
pranalidhanavade committed Oct 11, 2023
1 parent 338c2f3 commit 6668c13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/EditEcosystemOrgModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const EditPopupModal = (props: EditEntityModalProps) => {
});

const [loading, setLoading] = useState<boolean>(false);
const [isImageEmpty, setIsImageEmpty] = useState(false);
const [isImageEmpty, setIsImageEmpty] = useState(true);
const [initialEntityData, setInitialEntityData] = useState<EditEntityValues>({
name: "",
description: "",
Expand Down Expand Up @@ -72,7 +72,7 @@ const EditPopupModal = (props: EditEntityModalProps) => {
});

setLogoImage({
logoFile: "",
logoFile: "",
imagePreviewUrl: "",
fileName: "",
});
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 6668c13

Please sign in to comment.