From acfb28ce3c059e1a325029dd5cf5aff597183ce4 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 6 Jul 2023 20:42:21 +0800 Subject: [PATCH] Fixed login onboarding redirect --- src/routes/Login/Login.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/routes/Login/Login.tsx b/src/routes/Login/Login.tsx index a0d1a23..ee3e4d4 100644 --- a/src/routes/Login/Login.tsx +++ b/src/routes/Login/Login.tsx @@ -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 {