From 61617e8aced50c46e4704522ca863febd5f9409a Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Sun, 13 Sep 2020 20:27:14 +0800 Subject: [PATCH] Fix update detection --- eul/Store/PreferenceStore.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eul/Store/PreferenceStore.swift b/eul/Store/PreferenceStore.swift index cb9ff2d0..808da840 100644 --- a/eul/Store/PreferenceStore.swift +++ b/eul/Store/PreferenceStore.swift @@ -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 {