Manos Chorianopoulos

fix UnifiedCouponBarcodeVC coupon press bug

...@@ -188,13 +188,15 @@ extension UnifiedCouponBarcodeViewController: UITableViewDelegate, UITableViewDa ...@@ -188,13 +188,15 @@ extension UnifiedCouponBarcodeViewController: UITableViewDelegate, UITableViewDa
188 // print("Coupon Description clicked: " + (couponSetData?.short_description ?? "")) 188 // print("Coupon Description clicked: " + (couponSetData?.short_description ?? ""))
189 // print("Coupon Expiration clicked: " + (self.coupon?._coupons[indexPath.row].expiration ?? "")) 189 // print("Coupon Expiration clicked: " + (self.coupon?._coupons[indexPath.row].expiration ?? ""))
190 190
191 - swiftApi().logTrackersEvent("click", ("Coupon:" + (self.coupon?._coupons[indexPath.row].name ?? ""))) 191 + if (indexPath.section == 1) {
192 - 192 + swiftApi().logTrackersEvent("click", ("Coupon:" + (self.coupon?._coupons[indexPath.row].name ?? "")))
193 - let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) 193 +
194 - let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! SwiftWarplyFramework.CouponBarcodeViewController 194 + let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
195 - vc.coupon = self.coupon?._coupons[indexPath.row] 195 + let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! SwiftWarplyFramework.CouponBarcodeViewController
196 - vc.isMarket = true 196 + vc.coupon = self.coupon?._coupons[indexPath.row]
197 - self.navigationController?.pushViewController(vc, animated: true) 197 + vc.isMarket = true
198 + self.navigationController?.pushViewController(vc, animated: true)
199 + }
198 } 200 }
199 201
200 public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { 202 public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
......