chore: fix typo in code comment

This commit is contained in:
Daniel Roe 2023-04-01 12:12:34 +01:00
parent d282fcd5a3
commit 2f8e991b94

View File

@ -265,7 +265,7 @@ export function defineNuxtLink (options: NuxtLinkOptions) {
} }
// Resolves `to` value if it's a route location object // 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 const href = typeof to.value === 'object' ? router.resolve(to.value)?.href ?? null : to.value || null
// Resolves `target` value // Resolves `target` value