Fixes showing “Update” for Patreon apps with inactive pledges

This commit is contained in:
Riley Testut
2023-12-05 15:54:34 -06:00
committed by Magesh K
parent 786bf4ac63
commit 36ac3af7dc
2 changed files with 2 additions and 1 deletions

View File

@@ -339,6 +339,7 @@ public extension InstalledApp
var isUpdateAvailable: Bool {
guard let storeApp = self.storeApp, let latestVersion = storeApp.latestSupportedVersion else { return false }
guard !storeApp.isPledgeRequired || storeApp.isPledged else { return false }
let isUpdateAvailable = !self.matches(latestVersion)
return isUpdateAvailable