diff --git a/src/pages/edit-profile/EditProfile.tsx b/src/pages/edit-profile/EditProfile.tsx index e757f8bb6d..56d824f9aa 100644 --- a/src/pages/edit-profile/EditProfile.tsx +++ b/src/pages/edit-profile/EditProfile.tsx @@ -141,6 +141,10 @@ const EditProfile = () => { ) } void fetchData() + + return () => { + void fetchData() + } }, [dispatch, userId, userRole]) useEffect(() => { @@ -250,6 +254,7 @@ const EditProfile = () => { params: dataToUpdate }) ) + dispatch( openAlert({ severity: snackbarVariants.success,