Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2025-07-30 13:33:13 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c725b92fd310b47f937bb668eb9e6ceb99f9c04d
c725b92f
1 parent
4e3190f2
add logs
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
View file @
c725b92
...
...
@@ -134,12 +134,14 @@ import UIKit
// Filter by category "contest" or campaign_type "contest"
return
campaign
.
_category
==
"contest"
||
campaign
.
_campaign_type
==
"contest"
}
print
(
"=== getCampaigns ✅ [MyRewardsViewController] Loaded
\(
bannerCampaigns
.
count
)
campaigns"
)
// Load articles after campaigns are loaded
self
.
loadArticles
()
}
failureCallback
:
{
[
weak
self
]
errorCode
in
print
(
"Failed to load campaigns:
\(
errorCode
)
"
)
print
(
"
=== getCampaigns
Failed to load campaigns:
\(
errorCode
)
"
)
// Even if campaigns fail, try to load articles
self
?
.
loadArticles
()
}
...
...
@@ -156,7 +158,7 @@ import UIKit
}
self
.
articles
=
articles
print
(
"✅ [MyRewardsViewController] Loaded
\(
articles
.
count
)
carousel articles"
)
print
(
"
=== getArticles
✅ [MyRewardsViewController] Loaded
\(
articles
.
count
)
carousel articles"
)
// Create banner section with both campaigns and articles
self
.
createBannerSection
()
...
...
@@ -164,7 +166,7 @@ import UIKit
// TODO: Add Couponsets here
}
failureCallback
:
{
[
weak
self
]
errorCode
in
print
(
"Failed to load carousel articles:
\(
errorCode
)
"
)
print
(
"
=== getArticles
Failed to load carousel articles:
\(
errorCode
)
"
)
// Create banner section with only campaigns if articles fail
self
?
.
createBannerSection
()
}
...
...
Please
register
or
login
to post a comment