Skip to content

Commit

Permalink
Update Header.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
RileyAbr committed Nov 8, 2024
1 parent 8071078 commit d8c506e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wally-registry-frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<WallyOption[]>((resolve) => {
Expand Down

0 comments on commit d8c506e

Please sign in to comment.