Skip to content

Commit

Permalink
fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul committed Feb 22, 2024
1 parent b54fce9 commit 6ee0e7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6ee0e7b

Please sign in to comment.