Browse Source

add customer wallet number at all error message alert

pull/1/head
InKwon James Kim 5 years ago
parent
commit
b7c363f999
  1. 4
      GMERemittance/Extension/UIViewControllerExtension.swift

4
GMERemittance/Extension/UIViewControllerExtension.swift

@ -80,7 +80,9 @@ extension UIViewController {
}
private func getAlert(message: String?, title: String?, style: UIAlertControllerStyle? = .alert) -> UIAlertController {
return UIAlertController(title: title, message: message, preferredStyle: style ?? .alert)
let customerWalletNumber = UserDefaults.standard.string(forKey: UserKeys.walletNumber) ?? ""
let customerTitle = "\(title ?? "Alert")(\(customerWalletNumber))"
return UIAlertController(title: customerTitle, message: message, preferredStyle: style ?? .alert)
}
func present(_ alert: UIAlertController, asActionsheetInSourceView sourceView: Any) {

Loading…
Cancel
Save