mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 20:08:07 +08:00
Fixed revalidation page not redirecting properly if server is unreachable
This commit is contained in:
parent
49aa0cb5a6
commit
b8efd638ae
2 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ export default function Revalidation() {
|
|||
useEffect(() => {
|
||||
setState("Previous session found");
|
||||
TokenRefresh().then(async (response) => {
|
||||
if (response[0]) {
|
||||
if (response) {
|
||||
let user_info = await UserInfo();
|
||||
await dispatch(setUser(user_info));
|
||||
if (!(user_info.year_level || user_info.course || user_info.semester)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue