Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire committed Aug 30, 2024
1 parent decc0d3 commit 489428a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PrismicNextLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const PrismicNextLink = React.forwardRef<

return (
<Link ref={ref} {...attrs} {...restProps} href={href} rel={rel}>
{children || text}
{"children" in restProps ? children : text}
</Link>
);
});

0 comments on commit 489428a

Please sign in to comment.