From 116162ec50074cbefb5bc397f4f691df6426043f Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Sun, 24 Apr 2022 19:24:07 +0200 Subject: [PATCH] Hide history-link --- src/client/src/FrontPage.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/client/src/FrontPage.js b/src/client/src/FrontPage.js index 00465ee..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,7 @@ export default function App() { setUser({ isManager: false, isLoggedIn: false }); }); } - // Debug mode, allow all: + // // Debug mode, allow all: // let fetchUser = () => { // setUser({ // name: "TEST USERTEST",