We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd33c9 commit 5e54ae0Copy full SHA for 5e54ae0
src/link.tsx
@@ -23,7 +23,9 @@ export function setLink(params: { Link: typeof Link }): void {
23
{
24
const { to, href, ...rest } = props as { to?: string; href?: string };
25
26
- const target = to ?? href;
+ const target =
27
+ (typeof to === "string" ? to : undefined) ??
28
+ (typeof href === "string" ? href : undefined);
29
30
mailto: {
31
if (target === undefined || !target.startsWith("mailto:")) {
0 commit comments