diff --git a/UnstoppableWallet/UnstoppableWallet/Core/Managers/AccountManager.swift b/UnstoppableWallet/UnstoppableWallet/Core/Managers/AccountManager.swift index 9d5043b69b..e397b42a91 100644 --- a/UnstoppableWallet/UnstoppableWallet/Core/Managers/AccountManager.swift +++ b/UnstoppableWallet/UnstoppableWallet/Core/Managers/AccountManager.swift @@ -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] {