Skip to content

Commit

Permalink
chore: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jan 7, 2025
1 parent 2d138b9 commit 94a7e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/router/src/experimental/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,10 @@ export function experimental_createRouter(

if (
typeof rawLocation === 'object' &&
rawLocation.hash?.startsWith('#')
!rawLocation.hash?.startsWith('#')
) {
warn(
`A \`hash\` should always start with the character "#". Replace "${hash}" with "#${hash}".`
`A \`hash\` should always start with the character "#". Replace "${rawLocation.hash}" with "#${rawLocation.hash}".`
)
}
}
Expand Down

0 comments on commit 94a7e25

Please sign in to comment.