Skip to content

Commit 282cd9b

Browse files
committed
chore: fixed warn
1 parent 7bcf4c6 commit 282cd9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router/src/experimental/route-resolver/resolver-fixed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export function createFixedResolver<
182182
throw new Error(`Record "${String(name)}" not found`)
183183
}
184184

185-
if (typeof to === 'object' && to.hash && to.hash.startsWith('#')) {
185+
if (typeof to === 'object' && to.hash && !to.hash.startsWith('#')) {
186186
warn(
187187
`A \`hash\` should always start with the character "#". Replace "${to.hash}" with "#${to.hash}".`
188188
)

0 commit comments

Comments
 (0)