mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Updated login page
This commit is contained in:
parent
497e50f2a4
commit
c4c11d1afe
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue