Manos Chorianopoulos

fix coupon blank cells

......@@ -86,8 +86,9 @@ import UIKit
: couponSetData?.discount_type == "plus_one" ? "1+1"
: ((coupon.discount ?? "") + "€")
dicountLabel.text = discount
let htmlText = couponSetData?.inner_text ?? ""
discriptionLabel.text = htmlText.htmlToString
// let htmlText = couponSetData?.inner_text ?? ""
// discriptionLabel.text = htmlText.htmlToString
discriptionLabel.text = couponSetData?.inner_text ?? ""
expirationLabel.text = "Ισχύει έως "+(coupon.expiration ?? "")
}
......
......@@ -445,7 +445,8 @@ public class swiftApi {
self.short_description = dictionary["short_description"] as? String? ?? ""
self.discount = dictionary["discount"] as? String? ?? ""
self.sorting = dictionary["sorting"] as? Int? ?? 0
self.inner_text = dictionary["inner_text"] as? String? ?? ""
let htmlText = dictionary["inner_text"] as? String? ?? ""
self.inner_text = htmlText?.htmlToString ?? ""
self.buyable = dictionary["buyable"] as? Bool? ?? false
self.visible = dictionary["visible"] as? Bool? ?? false
self.terms = dictionary["terms"] as? String? ?? ""
......