Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
upreeti committed Dec 16, 2024
1 parent e89e61a commit 2ac3ec2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ const Link = forwardRef<HTMLButtonElement | HTMLAnchorElement, LinkProps>(
: to;
const IS_ABSOLUTE_LINK_REGEX = /^((?:(http|https):\/\/)|\/\/)/;
const staticBasePath =
(href != null && !IS_ABSOLUTE_LINK_REGEX.test(href)) || typeof to === 'string' ? routeAttributes.basePath : '';
(href != null && !IS_ABSOLUTE_LINK_REGEX.test(href)) ||
typeof to === 'string'
? routeAttributes.basePath
: '';

const triggerPrefetch = useCallback(() => {
// ignore if async route not ready yet
Expand Down

0 comments on commit 2ac3ec2

Please sign in to comment.