Skip to content

Commit

Permalink
chore: fix typo in code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 1, 2023
1 parent d282fcd commit 2f8e991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/components/nuxt-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export function defineNuxtLink (options: NuxtLinkOptions) {
}

// Resolves `to` value if it's a route location object
// converts `'''` to `null` to prevent the attribute from being added as empty (`href=""`)
// converts `""` to `null` to prevent the attribute from being added as empty (`href=""`)
const href = typeof to.value === 'object' ? router.resolve(to.value)?.href ?? null : to.value || null

// Resolves `target` value
Expand Down

0 comments on commit 2f8e991

Please sign in to comment.