mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-23 07:04:19 +01:00
fix typescript error
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user