From 2933f8eb77974169e32ffa3260f4bd24c5dfa47d Mon Sep 17 00:00:00 2001 From: Alex Youssefinia Date: Fri, 13 Dec 2024 12:44:08 -0600 Subject: [PATCH] PR cleanup --- services/ui-src/src/containers/UserManagement.js | 1 - services/ui-src/src/containers/UserPage.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/services/ui-src/src/containers/UserManagement.js b/services/ui-src/src/containers/UserManagement.js index 77979b97e..1cba6f28b 100644 --- a/services/ui-src/src/containers/UserManagement.js +++ b/services/ui-src/src/containers/UserManagement.js @@ -106,7 +106,6 @@ const UserManagement = () => { console.log("Error while fetching user list.", error); setAlertCode(RESPONSE_CODE[error.message]); }); - // eslint-disable-next-line react-hooks/exhaustive-deps }, [userProfile.email, userStatus]); // Load the data from the backend. diff --git a/services/ui-src/src/containers/UserPage.js b/services/ui-src/src/containers/UserPage.js index fb3bf3441..011497c34 100644 --- a/services/ui-src/src/containers/UserPage.js +++ b/services/ui-src/src/containers/UserPage.js @@ -161,7 +161,7 @@ const UserPage = () => { const { userProfile, setUserInfo, updatePhoneNumber, userRole, userStatus } = useAppContext(); const location = useLocation(); - let { userId } = useParams() ?? {}; + const { userId } = useParams() ?? {}; const [profileData, setProfileData] = useState({}); const [profileRole, setProfileRole] = useState(""); const [profileStatus, setProfileStatus] = useState("");