Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix ios crash when using biometrics

Ammar Ahmeda81c53425866
diff --git a/apps/mobile/app/services/biometrics.ts b/apps/mobile/app/services/biometrics.ts
index 2b07d0671..870730028 100644
--- a/apps/mobile/app/services/biometrics.ts
+++ b/apps/mobile/app/services/biometrics.ts
@@ -76,11 +76,11 @@ async function getCredentials(title?: string, description?: string) {
const options = Platform.select({
ios: {
fallbackEnabled: false,
- description: description
+ description: description || title || "Unlock"
},
android: {
title: title,
- description: description,
+ description: description || "Unlock",
deviceCredentialAllowed: false
}
});
@@ -132,11 +132,11 @@ async function validateUser(title: string, description?: string) {
Platform.select({
ios: {
fallbackEnabled: false,
- description: title
+ description: title || "Unlock"
},
android: {
title: title,
- description: description,
+ description: description || "Unlock",
deviceCredentialAllowed: false
}
}) as AuthenticateIOS