Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrooks committed Jan 22, 2024
1 parent 3141221 commit 7e6d0d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export default function HomePage() {
const supabase = createClientComponentClient<Database>();
const [user, setUser] = useState<null | User>(null);

useEffect(() => {
if (!isSessionLoading && !session) {
push('/auth');
}
if (!isSessionLoading && session) {
getUserFromSupabase(session, supabase, setUser);
}
}, [isSessionLoading, session]);
// useEffect(() => {
// if (!isSessionLoading && !session) {
// push('/auth');
// }
// if (!isSessionLoading && session) {
// getUserFromSupabase(session, supabase, setUser);
// }
// }, [isSessionLoading, session]);

return (
<Page pageTitle="Home" user={user}>
Expand Down

0 comments on commit 7e6d0d3

Please sign in to comment.