Skip to content

Commit

Permalink
Fix recept linking not working in 1.69.x+
Browse files Browse the repository at this point in the history
Take environment into account when initializing StoreProduct
  • Loading branch information
Brandon-T committed Sep 5, 2024
1 parent fa1838b commit a8125a4
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ public enum BraveStoreProduct: String, AppStoreProduct, CaseIterable {
/// Leo Yearly AppStore SKU
case leoYearly

public init?(rawValue: String) {
if let value = Self.allCases.first(where: { $0.rawValue == rawValue }) {
self = value
return
}

return nil
}

/// The Title of the SKU Group
public var subscriptionGroup: String {
switch self {
Expand Down

0 comments on commit a8125a4

Please sign in to comment.