Manos Chorianopoulos

fix setUniqueCampaignList

......@@ -2718,18 +2718,18 @@ public class swiftApi {
public func setUniqueCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void {
let userTag = self.getUserTag()
var campaignsArray:Array<CampaignItemModel> = []
// let userTag = self.getUserTag()
// var campaignsArray:Array<CampaignItemModel> = []
for item in campaigns {
if (((item._badge == nil) || (item._badge == ""))) {
campaignsArray.append(item)
} else if (item._badge == userTag) {
campaignsArray.append(item)
}
}
// for item in campaigns {
// if (((item._badge == nil) || (item._badge == ""))) {
// campaignsArray.append(item)
// } else if (item._badge == userTag) {
// campaignsArray.append(item)
// }
// }
GlobalVariables.campaigns = campaignsArray
GlobalVariables.campaigns = campaigns
}
......