Skip to content

Commit

Permalink
Merge pull request #153 from JumboCode/main
Browse files Browse the repository at this point in the history
Fix tab navigation
  • Loading branch information
nickbar01234 authored Apr 4, 2024
2 parents 9d9f12d + d395698 commit ca5d2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TabButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const TabButtons = ({ queries }: TabButtonsProps) => {
<div className="flex gap-6">
{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(
Expand Down

0 comments on commit ca5d2e0

Please sign in to comment.