mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-31 03:44:47 +00:00
Fix the address book, don't filter the addresses (#2190)
This commit is contained in:
parent
d2f1e9eb2a
commit
3d06cf251e
@ -23,11 +23,7 @@ const addressBookMiddleware = (store) => (next) => async (action) => {
|
||||
const safes = safesListSelector(state)
|
||||
|
||||
if (addressBook.length) {
|
||||
const filteredSafeAddresses = safes
|
||||
.filter((safe) => !safe.loadedViaUrl)
|
||||
.map((safe) => safe.address)
|
||||
.toJS()
|
||||
await saveAddressBook(addressBook.filter((entry) => filteredSafeAddresses.includes(entry.address)))
|
||||
await saveAddressBook(addressBook)
|
||||
}
|
||||
|
||||
switch (action.type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user