diff --git a/client/pages/community/MentorApply.tsx b/client/pages/community/MentorApply.tsx
index bbd83714..59a7e053 100644
--- a/client/pages/community/MentorApply.tsx
+++ b/client/pages/community/MentorApply.tsx
@@ -16,11 +16,12 @@ import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { Switch } from "@/components/ui/switch";
import { Textarea } from "@/components/ui/textarea";
-import { useNavigate } from "react-router-dom";
+import { useLocation, useNavigate } from "react-router-dom";
export default function MentorApply() {
- const { user, loading } = useAuth();
+ const { user } = useAuth();
const navigate = useNavigate();
+ const location = useLocation();
const [bio, setBio] = useState("");
const [expertise, setExpertise] = useState