Manos Chorianopoulos

fix setUniqueCampaignList

...@@ -2718,18 +2718,18 @@ public class swiftApi { ...@@ -2718,18 +2718,18 @@ public class swiftApi {
2718 2718
2719 2719
2720 public func setUniqueCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void { 2720 public func setUniqueCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void {
2721 - let userTag = self.getUserTag() 2721 + // let userTag = self.getUserTag()
2722 - var campaignsArray:Array<CampaignItemModel> = [] 2722 + // var campaignsArray:Array<CampaignItemModel> = []
2723 2723
2724 - for item in campaigns { 2724 + // for item in campaigns {
2725 - if (((item._badge == nil) || (item._badge == ""))) { 2725 + // if (((item._badge == nil) || (item._badge == ""))) {
2726 - campaignsArray.append(item) 2726 + // campaignsArray.append(item)
2727 - } else if (item._badge == userTag) { 2727 + // } else if (item._badge == userTag) {
2728 - campaignsArray.append(item) 2728 + // campaignsArray.append(item)
2729 - } 2729 + // }
2730 - } 2730 + // }
2731 2731
2732 - GlobalVariables.campaigns = campaignsArray 2732 + GlobalVariables.campaigns = campaigns
2733 } 2733 }
2734 2734
2735 2735
......