From 94a7e253ae592d1204d5beb3052c08b2401511e7 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 7 Jan 2025 14:22:51 +0100 Subject: [PATCH] chore: small fix --- packages/router/src/experimental/router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/router/src/experimental/router.ts b/packages/router/src/experimental/router.ts index 3c79d2c6..95762e89 100644 --- a/packages/router/src/experimental/router.ts +++ b/packages/router/src/experimental/router.ts @@ -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}".` ) } } -- 2.47.2