fix osUpdate check and address parser for Tor without protocol (#2941)

This commit is contained in:
Matt Hill
2025-05-10 12:18:20 -06:00
committed by GitHub
parent e1ccc583a3
commit 9b2b54d585
2 changed files with 8 additions and 4 deletions

View File

@@ -54,10 +54,12 @@ export class OSService {
serverId: id,
})
const [latest, _] = Object.entries(this.osUpdate).at(-1)!
const latest = Object.entries(this.osUpdate).at(-1)?.[0]
this.updateAvailable$.next(
Version.parse(latest).compare(Version.parse(version)) === 'greater',
latest
? Version.parse(latest).compare(Version.parse(version)) === 'greater'
: false,
)
}
}