From 12f098487326fe118a0a197bfd65b15a65e99483 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Sun, 24 Apr 2022 19:00:08 +0200 Subject: [PATCH] Added testing mode --- src/client/src/FrontPage.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/client/src/FrontPage.js b/src/client/src/FrontPage.js index 9fae354..00465ee 100644 --- a/src/client/src/FrontPage.js +++ b/src/client/src/FrontPage.js @@ -223,7 +223,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(); }, []);