diff --git a/src/components/ImgUpload.jsx b/src/components/ImgUpload.jsx index e37bc8696..7bfa608d6 100644 --- a/src/components/ImgUpload.jsx +++ b/src/components/ImgUpload.jsx @@ -89,7 +89,7 @@ function ImgUpload(props) { }); }; - const handleUpload = () => { + function handleUpload() { if ((!image && !caption) || !isValidimage) { enqueueSnackbar("Upload valid image and caption!", { variant: "error", @@ -135,7 +135,7 @@ function ImgUpload(props) { props.onUploadEnd(); } }); - }; + } return (