Skip to content

Commit dec5faa

Browse files
committed
fix version comparison
1 parent e801f8f commit dec5faa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

MistServerManager.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,8 @@ class MistServerManager {
550550
}
551551
}
552552

553-
DispatchQueue.main.async { completion(tagName, downloadURL) }
553+
let version = tagName.hasPrefix("v") ? String(tagName.dropFirst()) : tagName
554+
DispatchQueue.main.async { completion(version, downloadURL) }
554555
}.resume()
555556
}
556557

0 commit comments

Comments
 (0)