mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 20:08:07 +08:00
Finished onboarding page
This commit is contained in:
parent
bccc808150
commit
3931f58472
4 changed files with 54 additions and 38 deletions
|
@ -17,12 +17,15 @@ export default function Revalidation() {
|
|||
useEffect(() => {
|
||||
setState("Previous session found");
|
||||
TokenRefresh().then(async (response) => {
|
||||
if (response) {
|
||||
let user_info = await UserInfo();
|
||||
let user_info = await UserInfo();
|
||||
if (response && user_info[0]) {
|
||||
await dispatch(setUser(user_info));
|
||||
if (
|
||||
!(user_info.year_level || user_info.course || user_info.semester) &&
|
||||
(await UserInfo())
|
||||
!(
|
||||
user_info[1].year_level ||
|
||||
user_info[1].course ||
|
||||
user_info[1].semester
|
||||
)
|
||||
) {
|
||||
await setTimeout(() => {
|
||||
navigation.navigate("Onboarding");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue