From ed80bbeee1268ed19a74850e0abefa2ec28a4807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Tue, 9 Jul 2024 09:46:19 +0200 Subject: [PATCH] fix: hide unknown version --- frontend/src/components/layouts/AppLayout.tsx | 2 +- version/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/layouts/AppLayout.tsx b/frontend/src/components/layouts/AppLayout.tsx index fac4baf1..96eb9eac 100644 --- a/frontend/src/components/layouts/AppLayout.tsx +++ b/frontend/src/components/layouts/AppLayout.tsx @@ -211,7 +211,7 @@ export default function AppLayout() { className="font-semibold text-xl" > - {info?.version}  + {info?.version && <>{info?.version} } {upToDate ? ( ) : ( diff --git a/version/version.go b/version/version.go index f8f49f47..8c897894 100644 --- a/version/version.go +++ b/version/version.go @@ -10,7 +10,7 @@ import ( "github.com/sirupsen/logrus" ) -var Tag string = "Unknown Version" +var Tag string = "" type githubRelease struct { TagName string `json:"tag_name"`