Fix entitlements check
This commit is contained in:
parent
c9ee764d48
commit
d3486bbd7e
|
@ -228,7 +228,7 @@ struct IceCubesApp: App {
|
|||
Purchases.logLevel = .error
|
||||
Purchases.configure(withAPIKey: "appl_JXmiRckOzXXTsHKitQiicXCvMQi")
|
||||
Purchases.shared.getCustomerInfo { info, _ in
|
||||
if info?.entitlements.active.isEmpty == false {
|
||||
if info?.entitlements["Supporter"]?.isActive == false {
|
||||
isSupporter = true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ struct SupportAppView: View {
|
|||
loadingPlaceholder
|
||||
} else if let subscription {
|
||||
HStack {
|
||||
if customerInfo?.entitlements.active.isEmpty == false {
|
||||
if customerInfo?.entitlements["Supporter"]?.isActive == false {
|
||||
Text(Image(systemName: "checkmark.seal.fill"))
|
||||
.foregroundColor(theme.tintColor)
|
||||
.baselineOffset(-1) +
|
||||
|
|
Loading…
Reference in New Issue