Fixed login onboarding redirect

This commit is contained in:
Keannu Bernasol 2023-07-06 20:42:21 +08:00
parent 3931f58472
commit acfb28ce3c

View file

@ -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 {