fix typescript error

This commit is contained in:
Paul Miller
2024-02-22 11:49:59 +00:00
parent b54fce992e
commit 6ee0e7b6ac
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);