Skip to content

Commit

Permalink
fix: update logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouxl committed Nov 7, 2024
1 parent 7a4496a commit bc03dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FRW/Services/Manager/Config/RemoteConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bc03dc0

Please sign in to comment.