Update ReceiveInterfaceController.swift

This commit is contained in:
marcosrdz 2020-08-17 21:47:48 -04:00 committed by Overtorment
parent b1e47e942d
commit b95c5f5a72

View file

@ -49,9 +49,9 @@ class ReceiveInterfaceController: WKInterfaceController {
self?.imageInterface.setImage(image)
WCSession.default.sendMessage(["message": "fetchTransactions"], replyHandler: nil, errorHandler: nil)
} else {
self?.pop()
self?.presentAlert(withTitle: "Error", message: "Unable to create invoice. Please, make sure your iPhone is paired and nearby.", preferredStyle: .alert, actions: [WKAlertAction(title: "OK", style: .default, handler: { [weak self] in
self?.dismiss()
self?.pop()
})])
}
}