From bc03dc01702cb06e6a68df608bd8e01f6e8b43ce Mon Sep 17 00:00:00 2001 From: cat Date: Thu, 7 Nov 2024 12:46:17 +0800 Subject: [PATCH] fix: update logic error --- FRW/Services/Manager/Config/RemoteConfig.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FRW/Services/Manager/Config/RemoteConfig.swift b/FRW/Services/Manager/Config/RemoteConfig.swift index 2ea13a4c..3725d911 100644 --- a/FRW/Services/Manager/Config/RemoteConfig.swift +++ b/FRW/Services/Manager/Config/RemoteConfig.swift @@ -177,7 +177,7 @@ extension RemoteConfigManager { case .canUpgrade: if let remoteVersion = RemoteConfigManager.shared.remoteVersion, let currentVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String { - return remoteVersion.compareVersion(to: currentVersion) != .orderedAscending + return remoteVersion.compareVersion(to: currentVersion) == .orderedDescending }else { return false }