diff --git a/frontend/src/hooks/useChangePassword.ts b/frontend/src/hooks/useChangePassword.ts index 19e6278..a79ced2 100644 --- a/frontend/src/hooks/useChangePassword.ts +++ b/frontend/src/hooks/useChangePassword.ts @@ -31,6 +31,7 @@ const useChangePassword = () => { const notification = await response.json(); toast.success(notification.message); + navigate("/desired-route"); } catch (error) { alert(error); } finally { diff --git a/frontend/src/pages/AdminHomePage.tsx b/frontend/src/pages/AdminHomePage.tsx index 12af2c1..3b676ba 100644 --- a/frontend/src/pages/AdminHomePage.tsx +++ b/frontend/src/pages/AdminHomePage.tsx @@ -40,13 +40,13 @@ const AdminLandingPage = () => {