Skip to content

Commit

Permalink
update from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jun 21, 2024
1 parent 94fa7ba commit 1a9f374
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/Protected.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { AppProviders } from "./context/app";
export default function Protected() {
const { isLoggedIn } = useAuth();

// It is not known yet whether the user is logged or not.
if (isLoggedIn === undefined) return;

if (isLoggedIn === false) {
Expand Down

0 comments on commit 1a9f374

Please sign in to comment.