Skip to content

Commit

Permalink
Merge pull request #494 from Outblock/63-bug-new-version-available-no…
Browse files Browse the repository at this point in the history
…tification-incorrectly-displaying

fix: update logic error
  • Loading branch information
zhouxl authored Nov 7, 2024
2 parents 7a4496a + bc03dc0 commit dec717b
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 dec717b

Please sign in to comment.