Manos Chorianopoulos

ProfileViewController coupon list fixes

...@@ -275,11 +275,17 @@ import UIKit ...@@ -275,11 +275,17 @@ import UIKit
275 extension ProfileViewController: UITableViewDelegate, UITableViewDataSource { 275 extension ProfileViewController: UITableViewDelegate, UITableViewDataSource {
276 276
277 public func numberOfSections(in tableView: UITableView) -> Int { 277 public func numberOfSections(in tableView: UITableView) -> Int {
278 - return 4 + (filteredOffersSection?.offers.count ?? 0) 278 + // return 4 + (filteredOffersSection?.offers.count ?? 0)
279 + return 5
279 } 280 }
280 281
281 public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 282 public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
282 - return 1 283 + // return 1
284 + if (section <= 3) {
285 + return 1
286 + } else {
287 + return filteredOffersSection?.offers.count ?? 0
288 + }
283 } 289 }
284 290
285 public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 291 public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
......