From 8178f9bd4c1fe9619f4e3fbebe01da9db2764922 Mon Sep 17 00:00:00 2001 From: lendihop Date: Tue, 5 Nov 2024 15:49:50 +0100 Subject: [PATCH] rm redundant async/await --- src/lib/temple/front/address-book.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/temple/front/address-book.ts b/src/lib/temple/front/address-book.ts index e7c311ee5..13233228d 100644 --- a/src/lib/temple/front/address-book.ts +++ b/src/lib/temple/front/address-book.ts @@ -49,8 +49,8 @@ export function useContactsActions() { ); const removeContact = useCallback( - async (address: string) => - await updateSettings({ + (address: string) => + updateSettings({ contacts: contactsWithFallback.filter(c => c.address !== address) }), [contactsWithFallback, updateSettings]