Showing
1 changed file
with
5 additions
and
5 deletions
... | @@ -237,11 +237,11 @@ import SwiftEventBus | ... | @@ -237,11 +237,11 @@ import SwiftEventBus |
237 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in | 237 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in |
238 | switch action.style{ | 238 | switch action.style{ |
239 | case .default: | 239 | case .default: |
240 | - if (self.isFromWallet == true) { | 240 | + // if (self.isFromWallet == true) { |
241 | self.popBack(3) | 241 | self.popBack(3) |
242 | - } else { | 242 | + // } else { |
243 | - print("default") | 243 | + // print("default") |
244 | - } | 244 | + // } |
245 | 245 | ||
246 | case .cancel: | 246 | case .cancel: |
247 | print("cancel") | 247 | print("cancel") |
... | @@ -283,6 +283,7 @@ import SwiftEventBus | ... | @@ -283,6 +283,7 @@ import SwiftEventBus |
283 | if (response != nil) { | 283 | if (response != nil) { |
284 | DispatchQueue.main.async { | 284 | DispatchQueue.main.async { |
285 | if (response?.getStatus == 1) { | 285 | if (response?.getStatus == 1) { |
286 | + self.showSuccessDialog("Συγχαρητήρια!","Μόλις έκανες δώρο ένα κουπόνι!") | ||
286 | 287 | ||
287 | swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in }) | 288 | swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in }) |
288 | 289 | ||
... | @@ -291,7 +292,6 @@ import SwiftEventBus | ... | @@ -291,7 +292,6 @@ import SwiftEventBus |
291 | 292 | ||
292 | DispatchQueue.main.async { | 293 | DispatchQueue.main.async { |
293 | SwiftEventBus.post("coupons_fetched") | 294 | SwiftEventBus.post("coupons_fetched") |
294 | - self.showSuccessDialog("Συγχαρητήρια!","Μόλις έκανες δώρο ένα κουπόνι!") | ||
295 | } | 295 | } |
296 | } else { | 296 | } else { |
297 | } | 297 | } | ... | ... |
-
Please register or login to post a comment