mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
Update Riot/Modules/SetPinCode/EnterPinCode/EnterPinCodeViewModel.swift
Co-authored-by: SBiOSoftWhare <SBiOSoftWhare@users.noreply.github.com>
This commit is contained in:
@@ -138,9 +138,9 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
|
||||
if initialPin.isEmpty && currentPin != pinCodePreferences.pin {
|
||||
// no match
|
||||
updateAfterUnlockFailed()
|
||||
} else {
|
||||
} else if initialPin.isEmpty {
|
||||
// match or already unlocked
|
||||
if initialPin.isEmpty {
|
||||
|
||||
// the user can choose a new Pin code
|
||||
initialPin = currentPin
|
||||
currentPin.removeAll()
|
||||
@@ -149,7 +149,6 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
|
||||
// choosing pin
|
||||
updateAfterPinSet()
|
||||
}
|
||||
}
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user