diff --git a/app/Components/Login/Login.tsx b/app/Components/Login/Login.tsx index 1e66f2a..41e39ec 100644 --- a/app/Components/Login/Login.tsx +++ b/app/Components/Login/Login.tsx @@ -3,8 +3,8 @@ import { useState } from "react"; import { loginUser } from "@/app/lib/login"; import { useRouter } from "next/navigation"; -import "./Login.css"; import AlertBox from "../AlertBox/AlertBox"; +import "./Login.css"; function Login() { const [user, setUser] = useState(""); diff --git a/app/lib/getStudent.ts b/app/lib/getStudent.ts index 4107a84..001a23b 100644 --- a/app/lib/getStudent.ts +++ b/app/lib/getStudent.ts @@ -6,6 +6,7 @@ export async function GetStudent(numAcount: number) { const response = await axios.get( `${envConfig.apiUrl}/student/${numAcount}` ); + return response.data; } catch (error: any) { const msg =