Skip to content

Commit

Permalink
Don't invoke biometrics setup after chaning the pin if already set up.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Sep 21, 2021
1 parent f339db2 commit d9e7902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Riot/Modules/SetPinCode/SetPinCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ extension SetPinCoordinator: EnterPinCodeCoordinatorDelegate {

func enterPinCodeCoordinator(_ coordinator: EnterPinCodeCoordinatorType, didCompleteWithPin pin: String) {
storePin(pin)
if pinCodePreferences.forcePinProtection && pinCodePreferences.isBiometricsAvailable {
if pinCodePreferences.forcePinProtection && pinCodePreferences.isBiometricsAvailable && !pinCodePreferences.isBiometricsSet {
viewMode = .setupBiometricsAfterLogin
setRootCoordinator(createSetupBiometricsCoordinator())
} else {
Expand Down

0 comments on commit d9e7902

Please sign in to comment.