Manos Chorianopoulos

fix UnifiedCouponBarcodeVC coupon press bug

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