Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #36 from abhinandanwadwa/main
Browse files Browse the repository at this point in the history
Fix: Projects Section Should route to Login Page (#35)
  • Loading branch information
devarshishimpi authored Dec 24, 2022
2 parents 7d81b3f + 9d9f8dd commit 05c6ac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Projects/Projects.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Projects = () => {

useEffect(() => {
if (!localStorage.getItem('auth-token')) {
navigate('/');
navigate('/login');
}
else {
getProjects();
Expand Down Expand Up @@ -251,4 +251,4 @@ const Projects = () => {
)
}

export default Projects
export default Projects

0 comments on commit 05c6ac6

Please sign in to comment.