Skip to content

Commit

Permalink
Bug fix for case where user has no device authentication set and were…
Browse files Browse the repository at this point in the history
… not being presented with the correct UI
  • Loading branch information
amddg44 committed Nov 21, 2024
1 parent 1dfe764 commit 2596b5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DuckDuckGo/AutofillLoginListViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,10 @@ final class AutofillLoginListViewModel: ObservableObject {
private func updateViewState() {
var newViewState: AutofillLoginListViewModel.ViewState

if authenticator.state == .loggedOut && !authenticationNotRequired {
newViewState = .authLocked
} else if authenticator.state == .notAvailable {
if !authenticator.canAuthenticate() {
newViewState = .noAuthAvailable
} else if authenticator.state == .loggedOut && !authenticationNotRequired {
newViewState = .authLocked
} else if isSearching {
if sections.count == 0 {
newViewState = .searchingNoResults
Expand Down

0 comments on commit 2596b5e

Please sign in to comment.