diff --git a/components/link/index.js b/components/link/index.js index c94c104..c535775 100644 --- a/components/link/index.js +++ b/components/link/index.js @@ -29,9 +29,9 @@ export const Link = forwardRef(function Link( { - if (isAnchor) { + if (isAnchor && lenis) { e.preventDefault() - lenis?.scrollTo(href) + lenis.scrollTo(href) } onClick?.(e) }}