Showing
1 changed file
with
2 additions
and
14 deletions
... | @@ -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,11 +2037,7 @@ public class swiftApi { | ... | @@ -2041,11 +2037,7 @@ public class swiftApi { |
2041 | } | 2037 | } |
2042 | } | 2038 | } |
2043 | 2039 | ||
2044 | - if ((userTag != nil) && (userTag != "")) { | 2040 | + GlobalVariables.campaigns = campaignsArray |
2045 | - GlobalVariables.campaigns = campaignsArray.filter { $0.offer_category != "questionnaire" } | ||
2046 | - } else { | ||
2047 | - GlobalVariables.campaigns = campaignsArray | ||
2048 | - } | ||
2049 | } | 2041 | } |
2050 | 2042 | ||
2051 | 2043 | ||
... | @@ -2185,11 +2177,7 @@ public class swiftApi { | ... | @@ -2185,11 +2177,7 @@ public class swiftApi { |
2185 | } | 2177 | } |
2186 | } | 2178 | } |
2187 | 2179 | ||
2188 | - if ((userTag != nil) && (userTag != "")) { | 2180 | + GlobalVariables.campaigns = campaignsArray |
2189 | - GlobalVariables.campaigns = campaignsArray.filter { $0.offer_category != "questionnaire" } | ||
2190 | - } else { | ||
2191 | - GlobalVariables.campaigns = campaignsArray | ||
2192 | - } | ||
2193 | } | 2181 | } |
2194 | 2182 | ||
2195 | 2183 | ... | ... |
-
Please register or login to post a comment