mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-31 11:55:21 +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)
|
const safes = safesListSelector(state)
|
||||||
|
|
||||||
if (addressBook.length) {
|
if (addressBook.length) {
|
||||||
const filteredSafeAddresses = safes
|
await saveAddressBook(addressBook)
|
||||||
.filter((safe) => !safe.loadedViaUrl)
|
|
||||||
.map((safe) => safe.address)
|
|
||||||
.toJS()
|
|
||||||
await saveAddressBook(addressBook.filter((entry) => filteredSafeAddresses.includes(entry.address)))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user