Fix duplicated selected AccountCache
This commit is contained in:
committed by
Dat H. Pham
parent
4a245e06b8
commit
885a386068
@@ -35,8 +35,8 @@ class AccountCacheManager {
|
||||
.removeDuplicated()
|
||||
.whereNot((account) => account.accountId == newAccountCache.accountId)
|
||||
.toList();
|
||||
await _accountCacheClient.clearAllData();
|
||||
if (newAllAccounts.isNotEmpty) {
|
||||
await _accountCacheClient.clearAllData();
|
||||
await _accountCacheClient.updateMultipleItem(newAllAccounts.toMap());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user