From 1e4dfbc3775e3cd70d8e41e79a7ff3c8b833e284 Mon Sep 17 00:00:00 2001 From: vhande <78013271+vhande@users.noreply.github.com> Date: Mon, 4 Nov 2024 10:00:48 +0100 Subject: [PATCH] Update naming --- src/hooks/useLegacyPath.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useLegacyPath.tsx b/src/hooks/useLegacyPath.tsx index eaed85538..f0daa0399 100644 --- a/src/hooks/useLegacyPath.tsx +++ b/src/hooks/useLegacyPath.tsx @@ -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') && @@ -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 };