Manos Chorianopoulos

revert deleting questionnaire campaign

...@@ -33,10 +33,6 @@ public class swiftApi { ...@@ -33,10 +33,6 @@ public class swiftApi {
33 33
34 public func setUserTag(_ newUserTag: String) -> Void { 34 public func setUserTag(_ newUserTag: String) -> Void {
35 UserDefaults.standard.set(newUserTag, forKey: "userTag") 35 UserDefaults.standard.set(newUserTag, forKey: "userTag")
36 -
37 - if ((newUserTag != nil) && (newUserTag != "")) {
38 - GlobalVariables.campaigns = GlobalVariables.campaigns.filter { $0.offer_category != "questionnaire" }
39 - }
40 } 36 }
41 37
42 public class DFY { 38 public class DFY {
...@@ -2041,12 +2037,8 @@ public class swiftApi { ...@@ -2041,12 +2037,8 @@ public class swiftApi {
2041 } 2037 }
2042 } 2038 }
2043 2039
2044 - if ((userTag != nil) && (userTag != "")) {
2045 - GlobalVariables.campaigns = campaignsArray.filter { $0.offer_category != "questionnaire" }
2046 - } else {
2047 GlobalVariables.campaigns = campaignsArray 2040 GlobalVariables.campaigns = campaignsArray
2048 } 2041 }
2049 - }
2050 2042
2051 2043
2052 public class WarplyDealsAnalysisEventModel { 2044 public class WarplyDealsAnalysisEventModel {
...@@ -2185,12 +2177,8 @@ public class swiftApi { ...@@ -2185,12 +2177,8 @@ public class swiftApi {
2185 } 2177 }
2186 } 2178 }
2187 2179
2188 - if ((userTag != nil) && (userTag != "")) {
2189 - GlobalVariables.campaigns = campaignsArray.filter { $0.offer_category != "questionnaire" }
2190 - } else {
2191 GlobalVariables.campaigns = campaignsArray 2180 GlobalVariables.campaigns = campaignsArray
2192 } 2181 }
2193 - }
2194 2182
2195 2183
2196 public func getCampaignList() -> Array<CampaignItemModel> { 2184 public func getCampaignList() -> Array<CampaignItemModel> {
......