oops
This commit is contained in:
parent
4b820ba231
commit
9c2c547c13
|
@ -38,7 +38,9 @@ function App(props: RouteComponentProps) {
|
||||||
const { setUser } = useUser();
|
const { setUser } = useUser();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
ReactGA.pageview(window.location.pathname);
|
ReactGA.pageview(window.location.pathname);
|
||||||
fetch("https://account.lingdocs.com/api/user").then((res) => res.json()).then((res) => {
|
fetch("https://account.lingdocs.com/api/user", { credentials: "include" })
|
||||||
|
.then((res) => res.json())
|
||||||
|
.then((res) => {
|
||||||
console.log("fetched user info");
|
console.log("fetched user info");
|
||||||
if (res.user) {
|
if (res.user) {
|
||||||
const user = res.user as AT.LingdocsUser
|
const user = res.user as AT.LingdocsUser
|
||||||
|
|
Loading…
Reference in New Issue