Skip to content

Commit

Permalink
Fix NavBar active item highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillkurko committed Mar 8, 2024
1 parent 35ae3f7 commit afd73e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const NavBar = () => {
) : null}
<MobileMenu />
{Object.entries(NAV_ITEMS).map(([path, { name }]) => {
const isActive = pathname === path;
const isActive = currentPathname === path;
return (
<NavItem key={path} href={path} text={name} isActive={isActive} />
);
Expand Down

0 comments on commit afd73e5

Please sign in to comment.