Skip to content

Commit 94a7e25

Browse files
committed
chore: small fix
1 parent 2d138b9 commit 94a7e25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/router/src/experimental/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,10 @@ export function experimental_createRouter(
536536

537537
if (
538538
typeof rawLocation === 'object' &&
539-
rawLocation.hash?.startsWith('#')
539+
!rawLocation.hash?.startsWith('#')
540540
) {
541541
warn(
542-
`A \`hash\` should always start with the character "#". Replace "${hash}" with "#${hash}".`
542+
`A \`hash\` should always start with the character "#". Replace "${rawLocation.hash}" with "#${rawLocation.hash}".`
543543
)
544544
}
545545
}

0 commit comments

Comments
 (0)