Change variable name to notAllowedPINs

This commit is contained in:
ismailgulek
2020-09-17 15:55:41 +03:00
parent 75e9ae14fe
commit 8936c4e92e
3 changed files with 6 additions and 6 deletions
@@ -114,7 +114,7 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
// choosing pin
if firstPin.isEmpty {
// check if this PIN is allowed
if pinCodePreferences.blockedPINs.contains(currentPin) {
if pinCodePreferences.notAllowedPINs.contains(currentPin) {
viewMode = .blockedPin
update(viewState: .blockedPin)
return
@@ -51,9 +51,9 @@ final class PinCodePreferences: NSObject {
return BuildSettings.forcePinProtection
}
/// Blocked pin codes. User won't be able to select one of the pin in the list.
var blockedPINs: [String] {
return BuildSettings.blockedPINs
/// Not allowed pin codes. User won't be able to select one of the pin in the list.
var notAllowedPINs: [String] {
return BuildSettings.notAllowedPINs
}
var isBiometricsAvailable: Bool {