mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Fixed login onboarding redirect
This commit is contained in:
parent
3931f58472
commit
acfb28ce3c
1 changed files with 3 additions and 5 deletions
|
@ -85,11 +85,9 @@ export default function Login() {
|
||||||
dispatch(setStateUser(user_info));
|
dispatch(setStateUser(user_info));
|
||||||
// Redirect to onboarding if no year level, course, or semester specified
|
// Redirect to onboarding if no year level, course, or semester specified
|
||||||
if (
|
if (
|
||||||
!(
|
user_info[1].year_level == null ||
|
||||||
user_info.year_level ||
|
user_info[1].course == null ||
|
||||||
user_info.course ||
|
user_info[1].semester == null
|
||||||
user_info.semester
|
|
||||||
)
|
|
||||||
) {
|
) {
|
||||||
navigation.navigate("Onboarding");
|
navigation.navigate("Onboarding");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue