From c2a30162659ec1e19d724b928f853f9a68cbb9e8 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 15 Mar 2023 00:02:28 +0100 Subject: [PATCH] fix(frontend): get commit hash correctly --- frontend/src/routes/+layout.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index e5e5bb7..5e7cedc 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -12,7 +12,7 @@ const versionParts = version.split("-"); let commit = "[unknown]"; - if (versionParts.length >= 3) commit = versionParts[2]; + if (versionParts.length >= 3) commit = versionParts[2].slice(1); const versionMismatch = data.git_commit !== commit && data.git_commit !== "[unknown]";