mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-25 06:22:06 +01:00
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
Block a user