Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -92,7 +92,7 @@ import SwiftEventBus | ... | @@ -92,7 +92,7 @@ import SwiftEventBus |
92 | dfyEarnView.layer.shadowOpacity = 1.0 | 92 | dfyEarnView.layer.shadowOpacity = 1.0 |
93 | dfyEarnView.layer.shadowRadius = 3.0 | 93 | dfyEarnView.layer.shadowRadius = 3.0 |
94 | 94 | ||
95 | - var totalCouponValue = self.dfyCoupons.reduce(0) { $0 + (Float($1._value) ?? 0) } | 95 | + var totalCouponValue = swiftApi().getDealsCouponsSum() |
96 | totalCouponValue = Float(round(100 * totalCouponValue) / 100) | 96 | totalCouponValue = Float(round(100 * totalCouponValue) / 100) |
97 | var totalCouponValueString = "0" | 97 | var totalCouponValueString = "0" |
98 | totalCouponValueString = String(format: "%.2f", totalCouponValue).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil) | 98 | totalCouponValueString = String(format: "%.2f", totalCouponValue).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil) | ... | ... |
-
Please register or login to post a comment