mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
mobile: fix ios crash when using biometrics
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user