Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AronBuzogany committed May 23, 2024
1 parent 75a1c70 commit ab3aea3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/Header/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Layout(): JSX.Element {
) {
navigate("/");
}
}, []);
}, [meData.loggedIn, location.pathname, navigate]);

return (
<>
Expand All @@ -39,7 +39,6 @@ export default function Layout(): JSX.Element {
);
}


const useEnsureLangCodeInPath = () => {
const location = useLocation();
const navigate = useNavigate();
Expand All @@ -54,5 +53,5 @@ const useEnsureLangCodeInPath = () => {
const newPath = `/${langCode}/${pathParts.join("/")}`;
navigate(newPath);
}
}, [location, history, i18next.resolvedLanguage]);
}, [location, navigate]);
};

0 comments on commit ab3aea3

Please sign in to comment.