Skip to content

Commit

Permalink
Merge pull request #232 from SandroDahl/patch-1
Browse files Browse the repository at this point in the history
Adds missing error message case
  • Loading branch information
jayfunk authored Dec 13, 2022
2 parents 06989ea + 92247ed commit 958df87
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public void isSensorAvailable(final ReadableMap params, final Promise promise) {
case BiometricManager.BIOMETRIC_ERROR_NONE_ENROLLED:
resultMap.putString("error", "BIOMETRIC_ERROR_NONE_ENROLLED");
break;
case BiometricManager.BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED:
resultMap.putString("error", "BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED");
break;
}

promise.resolve(resultMap);
Expand Down

0 comments on commit 958df87

Please sign in to comment.