Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -1857,7 +1857,8 @@ public class swiftApi { | ... | @@ -1857,7 +1857,8 @@ public class swiftApi { |
1857 | profile_metadata_parsed = jsonArray; | 1857 | profile_metadata_parsed = jsonArray; |
1858 | self.profile_metadata = profile_metadata_parsed as? [String: Any]? ?? [String: Any]() | 1858 | self.profile_metadata = profile_metadata_parsed as? [String: Any]? ?? [String: Any]() |
1859 | self.badge = profile_metadata_parsed["badge"] as? String? ?? "" | 1859 | self.badge = profile_metadata_parsed["badge"] as? String? ?? "" |
1860 | - self.msisdnList = profile_metadata_parsed["msisdnList"] as? Array<String>? ?? [] | 1860 | + let tempMsisdnList = profile_metadata_parsed["msisdnList"] as? Array<String>? ?? [] |
1861 | + self.msisdnList = (tempMsisdnList ?? []).filter { $0 != "" } | ||
1861 | self.answered = profile_metadata_parsed["answered"] as? Bool? ?? false | 1862 | self.answered = profile_metadata_parsed["answered"] as? Bool? ?? false |
1862 | self.nonTelco = profile_metadata_parsed["nonTelco"] as? Bool? ?? false | 1863 | self.nonTelco = profile_metadata_parsed["nonTelco"] as? Bool? ?? false |
1863 | } else { | 1864 | } else { | ... | ... |
-
Please register or login to post a comment