Skip to content

Commit

Permalink
fix auth check on create game page
Browse files Browse the repository at this point in the history
  • Loading branch information
Firebird1029 committed Mar 16, 2024
1 parent 96f28f6 commit b5d8503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/create/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function CreateNewGamePage() {

// Ensure user is logged in
useEffect(() => {
supabase.auth.getUser().then(({ user, error }) => {
supabase.auth.getUser().then(({ data: { user }, error }) => {
if (error || !user) {
router.push("/login");
} else {
Expand Down

0 comments on commit b5d8503

Please sign in to comment.