From d3486bbd7e89c255c9ea0d4f3b1a4edb6f2ab50f Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 1 Mar 2023 20:43:01 +0100 Subject: [PATCH] Fix entitlements check --- IceCubesApp/App/IceCubesApp.swift | 2 +- IceCubesApp/App/Tabs/Settings/SupportAppView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IceCubesApp/App/IceCubesApp.swift b/IceCubesApp/App/IceCubesApp.swift index cf3f4189..dd47ad1e 100644 --- a/IceCubesApp/App/IceCubesApp.swift +++ b/IceCubesApp/App/IceCubesApp.swift @@ -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 } } diff --git a/IceCubesApp/App/Tabs/Settings/SupportAppView.swift b/IceCubesApp/App/Tabs/Settings/SupportAppView.swift index 9bffe442..5ba79008 100644 --- a/IceCubesApp/App/Tabs/Settings/SupportAppView.swift +++ b/IceCubesApp/App/Tabs/Settings/SupportAppView.swift @@ -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) +