From d3956984b294e3db9712cf6baa87016eb8cee1f1 Mon Sep 17 00:00:00 2001 From: nickbar01234 Date: Thu, 4 Apr 2024 00:29:24 -0400 Subject: [PATCH] Fix tab navigation --- src/components/TabButtons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TabButtons.tsx b/src/components/TabButtons.tsx index 1637c40e..77befadd 100644 --- a/src/components/TabButtons.tsx +++ b/src/components/TabButtons.tsx @@ -21,7 +21,7 @@ const TabButtons = ({ queries }: TabButtonsProps) => {
{queries.map(({ segment, name }, index) => { const isTabSelected = - pathName.endsWith(segment) || (urlSegment === null && index === 0); + pathName.includes(segment) || (urlSegment === null && index === 0); const base = pathName.match( new RegExp(