Showing
1 changed file
with
5 additions
and
3 deletions
... | @@ -135,11 +135,13 @@ import UIKit | ... | @@ -135,11 +135,13 @@ import UIKit |
135 | return campaign._category == "contest" || campaign._campaign_type == "contest" | 135 | return campaign._category == "contest" || campaign._campaign_type == "contest" |
136 | } | 136 | } |
137 | 137 | ||
138 | + print("=== getCampaigns ✅ [MyRewardsViewController] Loaded \(bannerCampaigns.count) campaigns") | ||
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 | } | ... | ... |
-
Please register or login to post a comment