Skip to content

Commit

Permalink
fix: catch error for fetchTally function
Browse files Browse the repository at this point in the history
  • Loading branch information
kittybest committed Dec 5, 2024
1 parent d0e0d18 commit 36e5374
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/interface/src/utils/fetchTally.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@ export async function fetchTallies(): Promise<Tally[] | undefined> {
body: JSON.stringify({
query: talliesQuery,
}),
}).then((r) => r.data.tallies);
})
.then((r) => r.data.tallies)
.catch(() => []);
}

0 comments on commit 36e5374

Please sign in to comment.