mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-17 04:36:39 +00:00
Fix entitlements check
This commit is contained in:
parent
c9ee764d48
commit
d3486bbd7e
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue