Skip to content

Commit 6aca6a4

Browse files
committed
fix: getOpenCollective returns an empty array if the network call has an error
1 parent 31e9b52 commit 6aca6a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/services/open-collective.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ async function getOpenCollective(key: OpenCollectiveKeys) {
4646
} catch (err) {
4747
console.error(err);
4848
}
49+
50+
return [];
4951
}
5052

5153
export const openCollectiveService = {

0 commit comments

Comments
 (0)