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-25 15:15:51 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3e37df9edd919926bfe15df478124fdec18d549e
3e37df9e
1 parent
846b59d3
crash fixes
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/Core/WarplySDK.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/ProfileViewController/ProfileViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Core/WarplySDK.swift
View file @
3e37df9
...
...
@@ -2342,7 +2342,7 @@ public final class WarplySDK {
return
false
}
let
totalCouponDiscount
=
oldCoupons
.
reduce
(
0
)
{
$0
+
(
$1
.
couponset_data
?
.
final_price
??
0.0
)
}
let
totalCouponDiscount
=
oldCoupons
.
reduce
(
0
)
{
$0
+
(
$1
.
couponset_data
?
.
_
final_price
??
0.0
)
}
let
redeemedSMHistory
=
RedeemedSMHistoryModel
()
redeemedSMHistory
.
_totalRedeemedValue
=
totalCouponDiscount
...
...
SwiftWarplyFramework/SwiftWarplyFramework/screens/ProfileViewController/ProfileViewController.swift
View file @
3e37df9
...
...
@@ -416,6 +416,11 @@ extension ProfileViewController: MyRewardsOffersScrollTableViewCellDelegate {
// Navigate to CouponViewController
openCouponViewController
(
with
:
offer
)
}
func
didSelectCouponSet
(
_
couponSet
:
CouponSetItemModel
)
{
// ProfileViewController doesn't handle coupon sets, so just log
print
(
"CouponSet selected in ProfileViewController:
\(
couponSet
.
_name
)
"
)
}
}
// Add delegate conformance
...
...
Please
register
or
login
to post a comment