From af3b35f06a21c2b0e40ce17a2b71bfc81e024c13 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 27 Dec 2023 15:17:18 +0100 Subject: [PATCH] trim v on version check (#3039) close #3034 --- web/src/compositions/useVersion.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/compositions/useVersion.ts b/web/src/compositions/useVersion.ts index a7f3eb2ec..bb557e50c 100644 --- a/web/src/compositions/useVersion.ts +++ b/web/src/compositions/useVersion.ts @@ -72,9 +72,9 @@ export function useVersion() { if (usesNext) { latest = versionInfo.next; } else if (current.includes('rc')) { - latest = versionInfo.rc; + latest = versionInfo.rc.replace(/^v/, ''); } else { - latest = versionInfo.latest; + latest = versionInfo.latest.replace(/^v/, ''); } }