diff --git a/src/containers/UserManagement/EditProfile.jsx b/src/containers/UserManagement/EditProfile.jsx index c2116ba3..6baae5e0 100644 --- a/src/containers/UserManagement/EditProfile.jsx +++ b/src/containers/UserManagement/EditProfile.jsx @@ -145,7 +145,7 @@ const EditProfile = () => { const langObj = new FetchSupportedLanguagesAPI("TRANSLATION"); dispatch(APITransport(langObj)); // eslint-disable-next-line - }, []); + }, [id]); useEffect(() => { if (userData?.email && userData?.role) { @@ -250,7 +250,11 @@ const EditProfile = () => { const { id: userId, role } = loggedInUserData; if (userId === +id) { - if (role === "ADMIN" || userId === orgOwnerId) { + if ( + role === "ADMIN" || + userId === orgOwnerId || + role === "PROJECT_MANAGER" + ) { return name === "org" || name === "availability"; } else { return name === "role" || name === "org" || name === "availability";