Skip to content

Commit

Permalink
Change false to undefined (primer#2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp authored and PrinceSumberia committed Aug 1, 2022
1 parent ba49507 commit bba2e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/NavList.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function NavItem({to, children}) {
const resolved = useResolvedPath(to)
const isCurrent = useMatch({path: resolved.pathname, end: true})
return (
<NavList.Item as={Link} to={to} aria-current={isCurrent ? 'page' : false}>
<NavList.Item as={Link} to={to} aria-current={isCurrent ? 'page' : undefined}>
{children}
</NavList.Item>
)
Expand Down

0 comments on commit bba2e4c

Please sign in to comment.