diff --git a/src/components/version.jsx b/src/components/version.jsx index 522112191..bc142e925 100644 --- a/src/components/version.jsx +++ b/src/components/version.jsx @@ -31,7 +31,23 @@ export default function Version() { return (
- {version} ({revision.substring(0, 7)}, {formatDate(buildTime)}) + {version === "main" || version === "dev" || version === "nightly" ? ( + <> + {version} ({revision.substring(0, 7)}, {formatDate(buildTime)}) + + ) : ( + releaseData && + compareVersions(latestRelease.tag_name, version) > 0 && ( + + {version} ({revision.substring(0, 7)}, {formatDate(buildTime)}) + + ) + )} {version === "main" || version === "dev" || version === "nightly" ? null