From 6f31dacd7469038a460c332b04e92cf5876b4963 Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Wed, 22 Mar 2023 18:44:03 +0000 Subject: [PATCH] fix settings active bug --- apps/web/components/navigation.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/components/navigation.tsx b/apps/web/components/navigation.tsx index b4e52cd70..1155875f9 100644 --- a/apps/web/components/navigation.tsx +++ b/apps/web/components/navigation.tsx @@ -100,7 +100,9 @@ export default function TopNavigation() { }, [session]); navigation.forEach((element) => { - element.current = router.route.endsWith("/" + element.href.split("/")[1]); + element.current = + router.route.endsWith("/" + element.href.split("/")[1]) || + router.route.includes(element.href.split("/")[1]); }); return (