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

fix?

parent 1da3e38f
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ export default function MonHumaviron () {
distMoy: 0,
});
useEffect(() => {
const interval = setInterval(() => {
const interval = setInterval(() => {console.log(`/api/my_scores?id=${user.login}`);
axios.get(`/api/my_scores?id=${user.login}`).then((response) => setUserData(response.data));
}, 500);
return () => clearInterval(interval);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment