diff --git a/wally-registry-frontend/src/components/Header.tsx b/wally-registry-frontend/src/components/Header.tsx index 89f3ae4..bfc7fc5 100644 --- a/wally-registry-frontend/src/components/Header.tsx +++ b/wally-registry-frontend/src/components/Header.tsx @@ -312,7 +312,7 @@ export default function Header() { const router = useRouter() const pathname = usePathname() - const currentParentPage = pathname.split("/")[1] + const currentParentPage = pathname ? pathname.split("/")[1] : "" const loadOptions = async (inputValue: string) => new Promise((resolve) => {