Skip to content

Commit

Permalink
error page show if not staff
Browse files Browse the repository at this point in the history
  • Loading branch information
domysh committed Oct 26, 2024
1 parent c65c772 commit 685e0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/pages/AppPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const AppPage = () => {
location.href = "/"
}
}
if (this_user.isFetching && this_user.data?.role != "staff"){
if (this_user.isFetched && this_user.data?.role != "staff"){
navigate("not-allowed")
}
console.log(this_user)
Expand Down

0 comments on commit 685e0dd

Please sign in to comment.