Manos Chorianopoulos

WalletVC SM tile count is always 1

......@@ -81,7 +81,9 @@ import SwiftEventBus
var forYouExpanded: Bool = false;
var showSpinner: Bool = false;
var showActiveCouponsBanners: Bool = false;
// TODO: UNCOMMENT if ActiveCouponsBanners needs to be hidden again
// var showActiveCouponsBanners: Bool = false;
var showActiveCouponsBanners: Bool = true;
var showEmptyView: Bool = false;
......@@ -768,7 +770,8 @@ import SwiftEventBus
self.showSpinner = true
if (self.dfyCoupons.count == 0 && self.unifiedCoupons.count == 0 && self.smCoupons.count == 0 && self.coupons.count == 0) {
self.showActiveCouponsBanners = false
// TODO: UNCOMMENT if ActiveCouponsBanners needs to be hidden again
// self.showActiveCouponsBanners = false
} else {
self.showActiveCouponsBanners = true
......@@ -778,7 +781,8 @@ import SwiftEventBus
self.showSpinner = false
if (self.dfyCoupons.count == 0 && self.unifiedCoupons.count == 0 && self.smCoupons.count == 0 && self.coupons.count == 0) {
self.showActiveCouponsBanners = false
// TODO: UNCOMMENT if ActiveCouponsBanners needs to be hidden again
// self.showActiveCouponsBanners = false
if (swiftApi().getShowVouchersBanner() == "null") {
// TODO: UNCOMMENT if emptyView is needed again
......@@ -1404,7 +1408,8 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
if (indexPath.section == 0) {
let cell = tableView.dequeueReusableCell(withIdentifier: "WalletActiveCouponsScrollTableViewCellId", for: indexPath) as! WalletActiveCouponsScrollTableViewCell
// cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: self.unifiedCoupons.count, gfyCount: self.coupons.count, boxCount: self.boxCoupons.count)
let smCount = self.unifiedCoupons.count + self.smCoupons.count
// let smCount = self.unifiedCoupons.count + self.smCoupons.count
let smCount = 1
cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: smCount, gfyCount: self.coupons.count, boxCount: 0)
cell.parent = self
return cell
......