Fix mobile nav SendouQ link

This commit is contained in:
Kalle
2022-03-22 00:04:51 +02:00
parent fb2b50121a
commit 430d32cb52

View File

@@ -29,7 +29,7 @@ export function MobileNav({
first: i === 0,
last: i + 1 === navGroup.items.length,
})}
to={navItem.disabled ? "/" : navItem.name}
to={navItem.disabled ? "/" : navItem.url ?? navItem.name}
onClick={closeMenu}
data-cy={`mobile-nav-link-${navItem.name}`}
>
@@ -39,7 +39,7 @@ export function MobileNav({
})}
src={`/img/layout/${navItem.name.replace(" ", "")}.webp`}
/>
<div>{navItem.name}</div>
<div>{navItem.displayName ?? navItem.name}</div>
</Link>
))}
</Fragment>