From c36946ee9efe786098ddacb71e39e600e3fadd26 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Wed, 30 Oct 2024 14:30:41 +0100 Subject: [PATCH] ui: fix version comparison --- frontend/app/components/Session_/Subheader.js | 2 +- frontend/app/components/Session_/WarnBadge.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/Session_/Subheader.js b/frontend/app/components/Session_/Subheader.js index 664c364c7..54a8d718a 100644 --- a/frontend/app/components/Session_/Subheader.js +++ b/frontend/app/components/Session_/Subheader.js @@ -71,7 +71,7 @@ function SubHeader(props) { diff --git a/frontend/app/components/Session_/WarnBadge.tsx b/frontend/app/components/Session_/WarnBadge.tsx index 29e0c57e6..704ae619e 100644 --- a/frontend/app/components/Session_/WarnBadge.tsx +++ b/frontend/app/components/Session_/WarnBadge.tsx @@ -43,7 +43,7 @@ const WarnBadge = React.memo( currentLocation && defaultLocalhostWarn && /(localhost)|(127.0.0.1)|(0.0.0.0)/.test(currentLocation); - const trackerVersion = window.env.TRACKER_VERSION ?? '1.0.0'; + const trackerVersion = window.env.TRACKER_VERSION ?? undefined; const trackerVerDiff = compareVersions(version, trackerVersion); const trackerWarnActive = trackerVerDiff !== VersionComparison.Same;