small fix for nav items

This commit is contained in:
hzrd149
2023-11-16 15:28:35 -06:00
parent e6bf8d8e95
commit d6a11bc949

View File

@@ -49,6 +49,7 @@ export default function NavItems() {
else if (location.pathname.startsWith("/tools")) active = "tools";
else if (location.pathname.startsWith("/search")) active = "search";
else if (location.pathname.startsWith("/t/")) active = "search";
else if (location.pathname.startsWith("/profile")) active = "profile";
else if (
account &&
(location.pathname.startsWith("/u/" + nip19.npubEncode(account.pubkey)) ||