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));
|
||||
// Redirect to onboarding if no year level, course, or semester specified
|
||||
if (
|
||||
!(
|
||||
user_info.year_level ||
|
||||
user_info.course ||
|
||||
user_info.semester
|
||||
)
|
||||
user_info[1].year_level == null ||
|
||||
user_info[1].course == null ||
|
||||
user_info[1].semester == null
|
||||
) {
|
||||
navigation.navigate("Onboarding");
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue