From 36f8b0357e15a1c82f0b51c4d76a9452de8f4603 Mon Sep 17 00:00:00 2001 From: zzggo Date: Fri, 14 Feb 2025 15:17:05 +1100 Subject: [PATCH] fixed: return the contact card with icons first --- src/ui/hooks/useContactHook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/hooks/useContactHook.ts b/src/ui/hooks/useContactHook.ts index 0dd4eae6..927df07a 100644 --- a/src/ui/hooks/useContactHook.ts +++ b/src/ui/hooks/useContactHook.ts @@ -141,11 +141,11 @@ export function useContactHook() { const useContact = useCallback( (address: string): Contact | null => { return ( - contactStore.recentContacts.find((c) => c.address === address) || contactStore.accountList.find((c) => c.address === address) || contactStore.evmAccounts.find((c) => c.address === address) || contactStore.childAccounts.find((c) => c.address === address) || contactStore.filteredContacts.find((c) => c.address === address) || + contactStore.recentContacts.find((c) => c.address === address) || null ); },