Added testing mode

This commit is contained in:
Felix Albrigtsen 2022-04-24 19:00:08 +02:00
parent 8ce7607cee
commit 12f0984873
1 changed files with 12 additions and 1 deletions

View File

@ -223,7 +223,18 @@ export default function App() {
setUser({ isManager: false, isLoggedIn: false }); 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(() => { React.useEffect(() => {
fetchUser(); fetchUser();
}, []); }, []);