Skip to content

Commit

Permalink
fix: Returning .userCancelled when the app goes to the background dur…
Browse files Browse the repository at this point in the history
…ing a Liveness check. (#167)
  • Loading branch information
ruisebas authored Aug 12, 2024
1 parent 7a40c09 commit 0b56e1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public struct FaceLivenessDetectorView: View {

func mapError(_ livenessError: LivenessStateMachine.LivenessError) -> FaceLivenessDetectionError {
switch livenessError {
case .userCancelled:
case .userCancelled, .viewResignation:
return .userCancelled
case .timedOut:
return .faceInOvalMatchExceededTimeLimitError
Expand Down

0 comments on commit 0b56e1f

Please sign in to comment.