From 05f3e182766fe9bb801182c647f35b69574b0e32 Mon Sep 17 00:00:00 2001 From: Brandon-T Date: Tue, 29 Oct 2024 08:21:10 -0400 Subject: [PATCH] [iOS] - Fix Leo yearly subscription ID on nightly (#26268) --- .../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" } } }