Skip to content

Commit

Permalink
Fix update detection
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Sep 13, 2020
1 parent bc6b622 commit 61617e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eul/Store/PreferenceStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class PreferenceStore: ObservableObject {
error == nil,
let version = self.version,
let tagName = JSON(data as Any)["tag_name"].string,
version.compare(tagName, options: .numeric) == .orderedAscending
"v\(version)".compare(tagName, options: .numeric) == .orderedAscending
{
self.isUpdateAvailable = true
} else {
Expand Down

0 comments on commit 61617e8

Please sign in to comment.