Manos Chorianopoulos

add logs

...@@ -134,12 +134,14 @@ import UIKit ...@@ -134,12 +134,14 @@ import UIKit
134 // Filter by category "contest" or campaign_type "contest" 134 // Filter by category "contest" or campaign_type "contest"
135 return campaign._category == "contest" || campaign._campaign_type == "contest" 135 return campaign._category == "contest" || campaign._campaign_type == "contest"
136 } 136 }
137 +
138 + print("=== getCampaigns ✅ [MyRewardsViewController] Loaded \(bannerCampaigns.count) campaigns")
137 139
138 // Load articles after campaigns are loaded 140 // Load articles after campaigns are loaded
139 self.loadArticles() 141 self.loadArticles()
140 142
141 } failureCallback: { [weak self] errorCode in 143 } failureCallback: { [weak self] errorCode in
142 - print("Failed to load campaigns: \(errorCode)") 144 + print("=== getCampaigns Failed to load campaigns: \(errorCode)")
143 // Even if campaigns fail, try to load articles 145 // Even if campaigns fail, try to load articles
144 self?.loadArticles() 146 self?.loadArticles()
145 } 147 }
...@@ -156,7 +158,7 @@ import UIKit ...@@ -156,7 +158,7 @@ import UIKit
156 } 158 }
157 159
158 self.articles = articles 160 self.articles = articles
159 - print("✅ [MyRewardsViewController] Loaded \(articles.count) carousel articles") 161 + print("=== getArticles ✅ [MyRewardsViewController] Loaded \(articles.count) carousel articles")
160 162
161 // Create banner section with both campaigns and articles 163 // Create banner section with both campaigns and articles
162 self.createBannerSection() 164 self.createBannerSection()
...@@ -164,7 +166,7 @@ import UIKit ...@@ -164,7 +166,7 @@ import UIKit
164 // TODO: Add Couponsets here 166 // TODO: Add Couponsets here
165 167
166 } failureCallback: { [weak self] errorCode in 168 } failureCallback: { [weak self] errorCode in
167 - print("Failed to load carousel articles: \(errorCode)") 169 + print("=== getArticles Failed to load carousel articles: \(errorCode)")
168 // Create banner section with only campaigns if articles fail 170 // Create banner section with only campaigns if articles fail
169 self?.createBannerSection() 171 self?.createBannerSection()
170 } 172 }
......