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.
  • Loading branch information
ruisebas committed Aug 9, 2024
1 parent 7a40c09 commit 7dff2b4
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 7dff2b4

Please sign in to comment.