bugfix: add condition check undefined value mega menu

This commit is contained in:
Nam Doan 2025-11-28 13:40:02 +07:00
parent 0dfa281333
commit 2f9102c4c4
1 changed files with 2 additions and 2 deletions

View File

@ -87,11 +87,11 @@ const MegaMenu = ({
<LocalizedClientLink <LocalizedClientLink
className={clx( className={clx(
"hover:text-ui-fg-base hover:bg-neutral-100 rounded-full px-3 py-2", "hover:text-ui-fg-base hover:bg-neutral-100 rounded-full px-3 py-2",
navLabel.className navLabel?.className
)} )}
href="/store" href="/store"
> >
{navLabel.text} {navLabel.isShowArrow && <ChevronDown />} {navLabel?.text ?? "Product"} {navLabel?.isShowArrow && <ChevronDown />}
</LocalizedClientLink> </LocalizedClientLink>
{isHovered && ( {isHovered && (
<div className="absolute top-full left-0 right-0 flex gap-32 py-10 px-20 bg-white border-b border-neutral-200 "> <div className="absolute top-full left-0 right-0 flex gap-32 py-10 px-20 bg-white border-b border-neutral-200 ">