Manos Chorianopoulos

fix coupon blank cells

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