Skip to content

Commit

Permalink
fix: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
mk965 committed Aug 14, 2024
1 parent 93f6ec5 commit b415f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function Link({ href, ...rest }: AnchorHTMLAttributes<HTMLAnchorElement>)
let isAnchorLink = href && href.startsWith('#')

if (isInternalLink) {
return <NextLink href={href} {...rest} />
return href && <NextLink href={href} {...rest} />
}

if (isAnchorLink) {
Expand Down

0 comments on commit b415f3e

Please sign in to comment.