fix: admin/home: newer stable versions displayed with "older" label #352
Massimo Melina committed
Sep 20, 2023 at 22:35 UTC
e51b4c6a1046aa3208858fda32e23c090334d319
1 file changed
+2
-1
src/update.ts
+2
-1
@@ -26,7 +26,8 @@ export async function getUpdates() {
26
const stable: Release = await getRepoInfo(HFS_REPO + '/releases/latest')
27
const verStable = ver(stable)
28
const ret = await getBetas()
29
- if (stable && (currentVersion.olderThan(stable.tag_name) || RUNNING_BETA)) // if we are running a beta, also offer the latest stable
29
+ stable.isNewer = currentVersion.olderThan(stable.tag_name) || RUNNING_BETA
30
+ if (stable.isNewer)
31
ret.push(stable)
32
return ret
33