Browse Source

Compile fix for macOS demo

Andrea Bizzotto 8 năm trước cách đây
mục cha
commit
9c7e90da3a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      SwiftyStoreKit-macOS-Demo/ViewController.swift

+ 1 - 1
SwiftyStoreKit-macOS-Demo/ViewController.swift

@@ -96,7 +96,7 @@ class ViewController: NSViewController {
 
             for purchase in results.restoredPurchases where purchase.needsFinishTransaction {
                 // Deliver content from server, then:
-                SwiftyStoreKit.finishTransaction(product.transaction)
+                SwiftyStoreKit.finishTransaction(purchase.transaction)
             }
 
             self.showAlert(self.alertForRestorePurchases(results))