fix settings active bug

This commit is contained in:
Ephraim Atta-Duncan
2023-03-22 18:44:03 +00:00
parent d509a6178f
commit 6f31dacd74

View File

@ -100,7 +100,9 @@ export default function TopNavigation() {
}, [session]); }, [session]);
navigation.forEach((element) => { 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 ( return (