Skip to content
Snippets Groups Projects
Commit 3ed66de4 authored by Antoine Gaudron-Desjardins's avatar Antoine Gaudron-Desjardins
Browse files

fix mistake

parent 390732c0
Branches
No related tags found
1 merge request!53Interface admin
Pipeline #44466 passed with warnings
......@@ -19,7 +19,7 @@ export default function Header({ selection, setSelection }) {
.get(`${process.env.REACT_APP_BASE_URL_BACK}/auth`, { withCredentials: true })
.then((res) => {
setUser(res.data);
localStorage.setItem("user", res.data);
localStorage.setItem("user", JSON.stringify(res.data));
})
.catch((e) => console.log(e));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment