Skip to content

Commit 8b6a6bd

Browse files
committed
fix: bad prefetch triggers
1 parent 00660e3 commit 8b6a6bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/website/src/components/common/Breadcrumb.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ function BreadcrumbLabel({ icon, label, href, isLast, highlight }: BreadcrumbLab
4848
</>
4949
);
5050

51-
if (href) {
51+
if (href && !isLast) {
5252
return (
5353
<Link
5454
className={cn(
5555
'flex items-center gap-2 hover:text-primary dark:hover:text-primary-dark min-w-0',
5656
getBreadcrumbTextStyles(isLast, highlight),
57-
isLast && 'pointer-events-none',
5857
)}
5958
href={href}
6059
prefetch

0 commit comments

Comments
 (0)