Skip to content
Snippets Groups Projects
Commit e861c6c7 authored by Thomas Bouquet's avatar Thomas Bouquet
Browse files

fix?

parent eb0065db
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ export default function MonHumaviron () {
axios.get('/api/user').then((response) => setUser(response.data));
}, 500);
return () => clearInterval(interval);
}, []);
}, [userData]);
console.log(user.login);
const [userData,setUserData] = useState({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment