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
2022-06-28 19:45:01 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
600effb1303863b9059be2bf3955f7921df4b802
600effb1
1 parent
7619d89c
add getDealsCouponsSum to wallet
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
600effb
...
...
@@ -92,7 +92,7 @@ import SwiftEventBus
dfyEarnView
.
layer
.
shadowOpacity
=
1.0
dfyEarnView
.
layer
.
shadowRadius
=
3.0
var
totalCouponValue
=
s
elf
.
dfyCoupons
.
reduce
(
0
)
{
$0
+
(
Float
(
$1
.
_value
)
??
0
)
}
var
totalCouponValue
=
s
wiftApi
()
.
getDealsCouponsSum
()
totalCouponValue
=
Float
(
round
(
100
*
totalCouponValue
)
/
100
)
var
totalCouponValueString
=
"0"
totalCouponValueString
=
String
(
format
:
"%.2f"
,
totalCouponValue
)
.
replacingOccurrences
(
of
:
"."
,
with
:
","
,
options
:
.
literal
,
range
:
nil
)
...
...
Please
register
or
login
to post a comment