cleanup debug
This commit is contained in:
parent
9c2c547c13
commit
3d27a52944
|
@ -35,13 +35,14 @@ if (prod) {
|
|||
|
||||
function App(props: RouteComponentProps) {
|
||||
const [navOpen, setNavOpen] = useState(false);
|
||||
// TODO: seperate function for getUserInfo with useUser and fetch
|
||||
// then set cronjob to call that - also do signin flox
|
||||
const { setUser } = useUser();
|
||||
useEffect(() => {
|
||||
ReactGA.pageview(window.location.pathname);
|
||||
fetch("https://account.lingdocs.com/api/user", { credentials: "include" })
|
||||
.then((res) => res.json())
|
||||
.then((res) => {
|
||||
console.log("fetched user info");
|
||||
if (res.user) {
|
||||
const user = res.user as AT.LingdocsUser
|
||||
setUser(user);
|
||||
|
|
|
@ -86,7 +86,6 @@ function GameCore<T>({ questions, Display, timeLimit, Instructions, studyLink, i
|
|||
: finish === "fail"
|
||||
? "danger"
|
||||
: "primary";
|
||||
console.log("user is", user)
|
||||
return <div>
|
||||
<div className="text-center" style={{ minHeight: "200px" }}>
|
||||
<div className="progress" style={{ height: "5px" }}>
|
||||
|
|
Loading…
Reference in New Issue