diff --git a/src/client/src/FrontPage.js b/src/client/src/FrontPage.js index 9fae354..07c949d 100644 --- a/src/client/src/FrontPage.js +++ b/src/client/src/FrontPage.js @@ -190,9 +190,11 @@ function Home(props) { } - - Finished tournaments are moved to the history-page - + {props.user.isLoggedIn && + + Finished tournaments are moved to the history-page + + } ); @@ -223,7 +225,18 @@ export default function App() { setUser({ isManager: false, isLoggedIn: false }); }); } - + // // Debug mode, allow all: + // let fetchUser = () => { + // setUser({ + // name: "TEST USERTEST", + // isManager: true, + // isLoggedIn: true, + // email: "testesen@gmail.com", + // asuraId: "123456789", + // googleId: "234" + // }); + // } + React.useEffect(() => { fetchUser(); }, []);