aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--frontend/src/components/login.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/frontend/src/components/login.js b/frontend/src/components/login.js
index 9495aab..ddff010 100644
--- a/frontend/src/components/login.js
+++ b/frontend/src/components/login.js
@@ -25,7 +25,6 @@ React.useEffect(() => {
25 .then(d => { 25 .then(d => {
26 setToken(d.data.token); 26 setToken(d.data.token);
27 setIsLoggedIn(true) 27 setIsLoggedIn(true)
28 console.log(d)
29 }) 28 })
30 }, []); 29 }, []);
31 30
@@ -38,7 +37,7 @@ React.useEffect(() => {
38 }}) 37 }})
39 .then(r => r.json()) 38 .then(r => r.json())
40 .then(d => {setProfile(d.data);console.log(d)}) 39 .then(d => {setProfile(d.data);console.log(d)})
41 console.log(profile) 40 console.log("profile:",profile)
42 }, [isLoggedIn]); 41 }, [isLoggedIn]);
43 42
44 43