fix(frontend): get commit hash correctly

This commit is contained in:
Sam 2023-03-15 00:02:28 +01:00
parent 7477814c1b
commit c2a3016265
No known key found for this signature in database
GPG key ID: B4EF20DDE721CAA1

View file

@ -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]";
</script>