Manos Chorianopoulos

add getDealsCouponsSum to wallet

...@@ -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)
......