From 6ee0e7b6ac52a4c86104258d00d7bc3073109803 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Thu, 22 Feb 2024 11:49:59 +0000 Subject: [PATCH] fix typescript error --- src/routes/Activity.tsx | 2 +- src/routes/Search.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/Activity.tsx b/src/routes/Activity.tsx index 04ae3da0..8f1a631a 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 7ed77def..ddf9cf2a 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);