Skip to content

Commit

Permalink
Merge pull request #51 from lake-of-fire/main
Browse files Browse the repository at this point in the history
Fix lowercased comparison
  • Loading branch information
russell-archer authored May 2, 2023
2 parents b079ff3 + 0194223 commit 86ec901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/StoreHelper/Core/SubscriptionHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public struct SubscriptionHelper {

// Make sure this product is from the same subscription group as the product we're searching for
let currentGroup = groupName(from: renewalInfoResult.transaction.currentProductID)
guard currentGroup == subscriptionGroup.lowercased() else { continue }
guard currentGroup?.lowercased() == subscriptionGroup.lowercased() else { continue }

// Get the Product for this subscription
guard let candidateSubscription = storeHelper.product(from: renewalInfoResult.transaction.currentProductID) else { continue }
Expand Down

0 comments on commit 86ec901

Please sign in to comment.