Skip to content

Commit

Permalink
Added fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 22, 2024
1 parent 2793e53 commit 17d5757
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ios/sandwich/QonversionSandwich.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ public class QonversionSandwich : NSObject {
contextKeys: [String],
completion: @escaping BridgeCompletion
) {
let purchaseCompletion = getPurchaseCompletionHandler(for: completion)
let purchaseOptions = Qonversion.PurchaseOptions(quantity: quantity, contextKeys: contextKeys)
Qonversion.shared().products { [weak self] result, err in
guard let self = self else { return }

let purchaseCompletion = getPurchaseCompletionHandler(for: completion)
let purchaseOptions = Qonversion.PurchaseOptions(quantity: quantity, contextKeys: contextKeys)

guard let product: Qonversion.Product = result[productId] else {
let error = self.productNotFoundError()
Expand Down

0 comments on commit 17d5757

Please sign in to comment.