Update Riot/Modules/SetPinCode/PinCodePreferences.swift

Co-authored-by: SBiOSoftWhare <SBiOSoftWhare@users.noreply.github.com>
This commit is contained in:
ismailgulek
2020-09-30 14:31:50 +03:00
committed by GitHub
parent 2a7222da8c
commit c11e1f88b4

View File

@@ -127,7 +127,7 @@ final class PinCodePreferences: NSObject {
var canUseBiometricsToUnlock: Bool? {
get {
do {
return try store.bool(forKey: StoreKeys.canUseBiometricsToUnlock) ?? true
return try store.bool(forKey: StoreKeys.canUseBiometricsToUnlock)
} catch let error {
NSLog("[PinCodePreferences] Error when reading canUseBiometricsToUnlock from store: \(error)")
return nil