Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -87,7 +87,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -87,7 +87,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ |
87 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 87 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
88 | let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as! SwiftWarplyFramework.CampaignViewController | 88 | let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as! SwiftWarplyFramework.CampaignViewController |
89 | var url = "" | 89 | var url = "" |
90 | - let hasLoyaltyCampaignId = campaigns[indexPath.row].loyaltyCampaignId != "" | 90 | + let hasLoyaltyCampaignId = campaigns[indexPath.row].loyaltyCampaignId != nil && campaigns[indexPath.row].loyaltyCampaignId != "" |
91 | 91 | ||
92 | if (hasLoyaltyCampaignId) { | 92 | if (hasLoyaltyCampaignId) { |
93 | let ccmsCampaigns = swiftApi().getCCMSLoyaltyCampaigns() | 93 | let ccmsCampaigns = swiftApi().getCCMSLoyaltyCampaigns() | ... | ... |
-
Please register or login to post a comment