Skip to content

Commit

Permalink
🐛 fix userKind Hook for guests (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildmodeOne authored Nov 3, 2023
1 parent 9c0dad2 commit bb1135d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rogue-thi-app/lib/hooks/user-kind.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export function useUserKind () {
setUserKind(USER_EMPLOYEE)
} else {
setUserKind(USER_STUDENT)
setUserFaculty(await loadFaculty())

if (localStorage.isStudent === 'true') {
setUserFaculty(await loadFaculty())
}
}
}

Expand Down

0 comments on commit bb1135d

Please sign in to comment.