Skip to content

Commit

Permalink
Merge branch 'frontend-production' of https://github.com/LL08-Mathema…
Browse files Browse the repository at this point in the history
  • Loading branch information
norahwinda committed Dec 15, 2023
2 parents 1059622 + 07b8d01 commit 5770706
Show file tree
Hide file tree
Showing 7 changed files with 283 additions and 264 deletions.
7 changes: 4 additions & 3 deletions src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ const Home = () => {
.then((response) => {
console.log(response?.data);
setUserInfo(response?.data?.userinfo);
console.log(userInfo)
console.log(userInfo);
sessionStorage.setItem('userInfo', JSON.stringify(response.data));
// setLoadingFetchUserInfo(false);
})
.catch((error) => {
Expand All @@ -116,8 +117,8 @@ const Home = () => {
`${window.location.href}`;
return;
}
getUserInfo()
sessionStorage.setItem('session_id', session_id)
getUserInfo();
sessionStorage.setItem('session_id', session_id);
// setLoggedIn(true);
}, []);

Expand Down
Loading

0 comments on commit 5770706

Please sign in to comment.