Fix local plan system

sync3
Laurent 6 months ago
parent 7b880a92af
commit 9668bfde7e
  1. 4
      PadelClubData/Subscriptions/Guard.swift

@ -172,6 +172,10 @@ import Combine
if let plan = PListReader.readString(plist: "local", key: "plan"), !plan.isEmpty {
return StoreItem(rawValue: plan)
}
if let currentBestPurchase = self.currentBestPurchase, let plan = StoreItem(rawValue: currentBestPurchase.productId) {
return plan
}
#elseif TESTFLIGHT
return .monthlyUnlimited
#elseif PRODTEST

Loading…
Cancel
Save