Skip to content

Commit

Permalink
Update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
vhande committed Nov 4, 2024
1 parent df76f63 commit 1e4dfbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useLegacyPath.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const useLegacyPath = () => {
asPath,
} = router;

const useLegacyPath = useMemo(() => {
const legacyPath = useMemo(() => {
const path = new URL(`http://localhost${asPath}`).pathname;
const ownershipPaths =
router.asPath.startsWith('/organizer') &&
Expand All @@ -38,7 +38,7 @@ const useLegacyPath = () => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [asPath, cookies.token, cookies['udb-language']]);

return useLegacyPath;
return legacyPath;
};

export { useLegacyPath };

0 comments on commit 1e4dfbc

Please sign in to comment.