Skip to content

Commit

Permalink
Minor fix to isPurchased()
Browse files Browse the repository at this point in the history
  • Loading branch information
russell-archer committed Apr 12, 2023
1 parent 5ba7ebb commit b079ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/StoreHelper/Core/StoreHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public class StoreHelper: ObservableObject {

// If this is a subscription product, before giving up see if it was renewed while the app was offline and the
// transaction hasn't yet been sent to us
if isSubscription(productId: productId) {
if product.type == .autoRenewable {
if purchasedProductsFallback.contains(productId) {
StoreLog.event(.productIsPurchasedFromCache, productId: productId)
return true
Expand Down

0 comments on commit b079ff3

Please sign in to comment.