QR code: Fix what happens when an error is shown
This commit is contained in:
parent
79672fa920
commit
a0b24f53b5
|
@ -131,7 +131,7 @@ class QRScanViewController: UIViewController {
|
|||
func scanDidEncounterError(title: String, message: String) {
|
||||
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert)
|
||||
alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: { [weak self] _ in
|
||||
self?.navigationController?.popViewController(animated: true)
|
||||
self?.dismiss(animated: true, completion: nil)
|
||||
}))
|
||||
present(alertController, animated: true)
|
||||
captureSession = nil
|
||||
|
|
Loading…
Reference in New Issue