diff --git a/src/components/Project/ManageProjectInfo.jsx b/src/components/Project/ManageProjectInfo.jsx index 2ae2ad2e..8b1550fc 100644 --- a/src/components/Project/ManageProjectInfo.jsx +++ b/src/components/Project/ManageProjectInfo.jsx @@ -98,12 +98,13 @@ const ManageProjectInfo = ({ project, handleSubmitForm, onClose }) => { const onSubmitForm = (updatedProject) => { setLoading(true); - handleSubmitForm(updatedProject); + + handleSubmitForm( updatedProject ,setLoading); + + }; - useEffect(() => { - return () => setLoading(false); - }, []); + return (