TooManyAttempts logic fixed

This commit is contained in:
Alexey Gerasimov 2018-10-24 13:29:36 +03:00
parent 9b5c16b7da
commit 94269b86e5
3 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# Changelog
### 0.3.7
- **Fixed**: `PassCodeError.tooManyAttempts` logic in `.create` and `.change` `PassCodeOperationType`
### 0.3.6
- **Update**: PassCodeError, now emmit `tooManyAttempts` in any operation (*create* / *change* / *enter*) type.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKitAdditions"
s.version = "0.3.6"
s.version = "0.3.7"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKitAdditions"
s.license = "Apache License, Version 2.0"

View File

@ -198,9 +198,9 @@ extension BasePassCodeViewModel {
}
switch passCodeHolder.type {
case .create where passCodeHolder.enterStep == .enter:
case .create where passCodeHolder.enterStep == .repeatEnter:
attemptsNumber += 1
case .change where passCodeHolder.enterStep == .enter:
case .change where passCodeHolder.enterStep == .repeatEnter:
attemptsNumber += 1
case .enter:
attemptsNumber += 1