Browse Source

if no identities are enrolled then show alert message

pull/1/head
InKwon James Kim 5 years ago
parent
commit
e89b465eeb
  1. 17
      GMERemittance/Module/BiometricAuthModules/BiometricAuthentication/User Interface/Wireframe/BiometricAuthenticationWireframe.swift

17
GMERemittance/Module/BiometricAuthModules/BiometricAuthentication/User Interface/Wireframe/BiometricAuthenticationWireframe.swift

@ -103,7 +103,22 @@ extension BiometricAuthenticationWireframe: BiometricAuthenticationWireframeInpu
} }
}) })
} else { } else {
self.delegate?.viewController(vc, didFailWithError: error!, errorMessage: error?.localizedDescription)
guard let error = error else {
return
}
let message: String
switch error.code {
case -7:
message = "\(error.localizedDescription)\n Check your device setting."
default:
message = error.localizedDescription
}
view.alert(message: message, title: "Error"){
self.delegate?.viewController(vc, didFailWithError: error, errorMessage: error.localizedDescription)
}
} }
} }

Loading…
Cancel
Save