Skip to content

Commit

Permalink
fix tablet nav current page display (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime authored Mar 28, 2024
1 parent d7d4663 commit a3bb015
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/minifront/src/components/header/tablet-nav-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ export const TabletNavMenu = () => {
<NavigationMenuItem>
<NavigationMenuTrigger className='w-[188px] rounded-lg border border-light-brown text-muted'>
{
[...headerLinks, transactionLink].find(link => link.subLinks?.includes(pathname))
?.label
[...headerLinks, transactionLink].find(
link => link.href === pathname || link.subLinks?.includes(pathname),
)?.label
}
</NavigationMenuTrigger>
<NavigationMenuContent className='w-[188px]'>
Expand Down

0 comments on commit a3bb015

Please sign in to comment.