From 3d27a52944eac4b8291a66e69dd135b37b9515c6 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sat, 18 Sep 2021 00:56:50 -0400 Subject: [PATCH] cleanup debug --- src/App.tsx | 3 ++- src/games/GameCore.tsx | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 83c1ce2..d56e0aa 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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); diff --git a/src/games/GameCore.tsx b/src/games/GameCore.tsx index 3c6e6e2..f2eb4c5 100644 --- a/src/games/GameCore.tsx +++ b/src/games/GameCore.tsx @@ -86,7 +86,6 @@ function GameCore({ questions, Display, timeLimit, Instructions, studyLink, i : finish === "fail" ? "danger" : "primary"; - console.log("user is", user) return