Skip to content

Commit

Permalink
fixed: return the contact card with icons first
Browse files Browse the repository at this point in the history
  • Loading branch information
zzggo committed Feb 14, 2025
1 parent d05537a commit 36f8b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/hooks/useContactHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
},
Expand Down

0 comments on commit 36f8b03

Please sign in to comment.