diff --git a/src/routes/Activity.tsx b/src/routes/Activity.tsx index 04ae3da..8f1a631 100644 --- a/src/routes/Activity.tsx +++ b/src/routes/Activity.tsx @@ -40,7 +40,7 @@ function ContactRow() { const [contacts, { refetch }] = createResource(async () => { try { const contacts: TagItem[] = - state.mutiny_wallet?.get_contacts_sorted(); + await state.mutiny_wallet?.get_contacts_sorted(); return contacts || []; } catch (e) { console.error(e); diff --git a/src/routes/Search.tsx b/src/routes/Search.tsx index 7ed77de..ddf9cf2 100644 --- a/src/routes/Search.tsx +++ b/src/routes/Search.tsx @@ -87,7 +87,7 @@ function ActualSearch() { async function contactsFetcher() { try { const contacts: TagItem[] = - state.mutiny_wallet?.get_contacts_sorted(); + await state.mutiny_wallet?.get_contacts_sorted(); return contacts || []; } catch (e) { console.error(e);