From c4c11d1afe2fce36ee6e06a48993edbb19c91c39 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Mon, 14 Aug 2023 23:31:00 +0800 Subject: [PATCH] Updated login page --- src/routes/Login/Login.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/Login/Login.tsx b/src/routes/Login/Login.tsx index aad5f4c..22430cf 100644 --- a/src/routes/Login/Login.tsx +++ b/src/routes/Login/Login.tsx @@ -13,7 +13,7 @@ import LoginIcon from "../../icons/LoginIcon/LoginIcon"; import Button from "../../components/Button/Button"; import { useNavigation } from "@react-navigation/native"; import { RootDrawerParamList } from "../../interfaces/Interfaces"; -import { UserInfo, UserLogin } from "../../components/Api/Api"; +import { GetUserInfo, UserLogin } from "../../components/Api/Api"; import { ParseLoginError } from "../../components/ParseError/ParseError"; import AnimatedContainer from "../../components/AnimatedContainer/AnimatedContainer"; import { setUser } from "../../features/redux/slices/UserSlice/UserSlice"; @@ -75,7 +75,7 @@ export default function Login() { }).then(async (result) => { if (result[0]) { setUser({ ...creds, username: "", password: "", error: "" }); - let user_info = await UserInfo(); + let user_info = await GetUserInfo(); dispatch(login()); dispatch(setUser(user_info[1])); // Redirect to onboarding if no year level, course, or semester specified