Manos Chorianopoulos

delete questionnaire campaign if userTag exists v2

......@@ -33,6 +33,10 @@ public class swiftApi {
public func setUserTag(_ newUserTag: String) -> Void {
UserDefaults.standard.set(newUserTag, forKey: "userTag")
if ((newUserTag != nil) && (newUserTag != "")) {
GlobalVariables.campaigns = GlobalVariables.campaigns.filter { $0.offer_category != "questionnaire" }
}
}
public class DFY {
......