Manos Chorianopoulos

fix setCampaignList not to filter for badge

......@@ -2122,18 +2122,18 @@ public class swiftApi {
}
public func setCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void {
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)
}
}
GlobalVariables.campaigns = campaignsArray
// 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)
// }
// }
GlobalVariables.campaigns = campaigns
}
......