From 381ebeb85d0ebad936730c276ca910a39ad71f67 Mon Sep 17 00:00:00 2001 From: Brandon T Date: Mon, 28 Oct 2024 16:09:50 -0400 Subject: [PATCH] Fix Leo yearly subscription ID on nightly. --- .../Sources/BraveStore/Subscription/SDK/BraveStoreSDK.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ios/brave-ios/Sources/BraveStore/Subscription/SDK/BraveStoreSDK.swift b/ios/brave-ios/Sources/BraveStore/Subscription/SDK/BraveStoreSDK.swift index 74bc3cdb4002..f2752e25d08d 100644 --- a/ios/brave-ios/Sources/BraveStore/Subscription/SDK/BraveStoreSDK.swift +++ b/ios/brave-ios/Sources/BraveStore/Subscription/SDK/BraveStoreSDK.swift @@ -139,7 +139,11 @@ public enum BraveStoreProduct: String, AppStoreProduct, CaseIterable { switch self { case .vpnMonthly, .leoMonthly: return "\(prefix)\(productId).monthly" case .vpnYearly: return "\(prefix)\(productId).yearly" - case .leoYearly: return "\(prefix)\(productId).yearly.2" + case .leoYearly: + if BraveSkusEnvironment.current == .release { + return "\(prefix)\(productId).yearly.2" + } + return "\(prefix)\(productId).yearly" } } }