Skip to content

Commit

Permalink
Solve some issue with the routes conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Dachrono committed Nov 8, 2023
1 parent f415713 commit 08e1987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function App() {
}, [dispatch, status]);

const location = useLocation();
const RenderNavbar = location.pathname !== '/login' && location.pathname !== '/Register';
const RenderNavbar = location.pathname !== '/login' && location.pathname !== '/Register' && location.pathname !== '/';

return (
<>
Expand Down

0 comments on commit 08e1987

Please sign in to comment.