Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
KillariDev committed Nov 25, 2024
1 parent 1728f93 commit b931197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/ts/background/popupMessageHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export async function changeMakeMeRich(ethereumClientService: EthereumClientServ

export async function removeAddressBookEntry(simulator: Simulator, websiteTabConnections: WebsiteTabConnections, removeAddressBookEntry: RemoveAddressBookEntry) {
await updateUserAddressBookEntries((previousContacts) => previousContacts.filter((contact) =>
contact.address !== removeAddressBookEntry.data.address
&& (contact.chainId === removeAddressBookEntry.data.chainId || (contact.chainId === undefined && removeAddressBookEntry.data.chainId === 1n)))
!(contact.address === removeAddressBookEntry.data.address
&& (contact.chainId === removeAddressBookEntry.data.chainId || (contact.chainId === undefined && removeAddressBookEntry.data.chainId === 1n))))
)
if (removeAddressBookEntry.data.addressBookCategory === 'My Active Addresses') updateWebsiteApprovalAccesses(simulator, websiteTabConnections, await getSettings())
return await sendPopupMessageToOpenWindows({ method: 'popup_addressBookEntriesChanged' })
Expand Down

0 comments on commit b931197

Please sign in to comment.