Skip to content

Commit

Permalink
Fix auto-selecting account when switching to Duress Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ealymbaev committed Sep 29, 2023
1 parent efa9d00 commit cb5dedc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class AccountCachedStorage {

private func syncAccounts() {
_accounts = _allAccounts.filter { _, account in account.level >= level }
_activeAccount = activeAccountStorage.activeAccountId(level: level).flatMap { _accounts[$0] }
_activeAccount = activeAccountStorage.activeAccountId(level: level).flatMap { _accounts[$0] } ?? _accounts.first?.value
}

var allAccounts: [Account] {
Expand Down

0 comments on commit cb5dedc

Please sign in to comment.