Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
fix: if version is greater than released version, still mark Alby hub…
Browse files Browse the repository at this point in the history
… as up to date (#506)
  • Loading branch information
rolznz authored Jun 26, 2024
1 parent 11169a9 commit 34c8fa9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/components/layouts/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ export default function AppLayout() {
);
}

const upToDate = info?.version && info.version === info.latestVersion;
const upToDate =
info?.version &&
info.latestVersion &&
info.version.startsWith("v") &&
info.latestVersion.startsWith("v") &&
info.version.substring(1) >= info.latestVersion.substring(1);

return (
<>
Expand Down

0 comments on commit 34c8fa9

Please sign in to comment.