Change view mode name

This commit is contained in:
ismailgulek
2020-09-17 15:57:06 +03:00
parent dbea2e56bc
commit 75c2620695
3 changed files with 5 additions and 5 deletions

View File

@@ -86,7 +86,7 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
currentPin.removeLast()
// switch to setPin if blocked
if viewMode == .blockedPin {
if viewMode == .notAllowedPin {
// clear error UI
update(viewState: .choosePin)
// switch to normal flow
@@ -97,7 +97,7 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
// a digit tapped
// switch to setPin if blocked
if viewMode == .blockedPin {
if viewMode == .notAllowedPin {
// clear old pin first
currentPin.removeAll()
// clear error UI
@@ -115,7 +115,7 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
if firstPin.isEmpty {
// check if this PIN is allowed
if pinCodePreferences.notAllowedPINs.contains(currentPin) {
viewMode = .blockedPin
viewMode = .notAllowedPin
update(viewState: .blockedPin)
return
}