style(settings): align updates section with app UI patterns

This commit is contained in:
Mohamed Boudra
2026-02-22 10:44:13 +07:00
parent 231b83dbc2
commit 1c83e10c6d
3 changed files with 15 additions and 10 deletions
@@ -76,7 +76,7 @@ describe('desktop-updates helpers', () => {
expect(formatVersionWithPrefix('0.2.0')).toBe('v0.2.0')
expect(formatVersionWithPrefix('v0.2.0')).toBe('v0.2.0')
expect(formatVersionWithPrefix(null)).toBe('Unavailable')
expect(formatVersionWithPrefix(null)).toBe('\u2014')
})
it('prefers localhost direct host when selecting local daemon', async () => {
+1 -1
View File
@@ -137,7 +137,7 @@ export function isVersionMismatch(
export function formatVersionWithPrefix(version: string | null | undefined): string {
const value = version?.trim()
if (!value) {
return 'Unavailable'
return '\u2014'
}
return value.startsWith('v') ? value : `v${value}`