diff --git a/src/client/src/FrontPage.js b/src/client/src/FrontPage.js index 6e3182e..9fae354 100644 --- a/src/client/src/FrontPage.js +++ b/src/client/src/FrontPage.js @@ -223,7 +223,7 @@ export default function App() { setUser({ isManager: false, isLoggedIn: false }); }); } - + React.useEffect(() => { fetchUser(); }, []); diff --git a/src/client/src/TournamentManager.js b/src/client/src/TournamentManager.js index 09210e0..cbae582 100644 --- a/src/client/src/TournamentManager.js +++ b/src/client/src/TournamentManager.js @@ -222,9 +222,7 @@ export default function TournamentManager(props) { showError = props.showError; showSuccess = props.showSuccess; - if (!props.user.isLoggedIn) { - return ; - } + if (!props.user.isLoggedIn) { return ; } return ( <> diff --git a/src/client/src/components/AsuraBar.js b/src/client/src/components/AsuraBar.js index 8cf72c0..27074f3 100644 --- a/src/client/src/components/AsuraBar.js +++ b/src/client/src/components/AsuraBar.js @@ -28,7 +28,7 @@ function LoggedInMenu(props) { - +