Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -33,6 +33,10 @@ public class swiftApi { | ... | @@ -33,6 +33,10 @@ 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 | + } | ||
36 | } | 40 | } |
37 | 41 | ||
38 | public class DFY { | 42 | public class DFY { | ... | ... |
-
Please register or login to post a comment