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

fix?

parent f5ba6fb9
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ export default function MonHumaviron () {
});
useEffect(() => {
const interval = setInterval(() => {
axios.get("/api/my_scores?id=2019bouquett"/*+user.login*/).then((response) => setUserData(response.data));
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