Skip to content

Commit

Permalink
Add safe error handler for allnetworks indexer req
Browse files Browse the repository at this point in the history
  • Loading branch information
serg-plusplus committed Apr 2, 2024
1 parent 31d3610 commit 2bdc12e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/back/sync/tokens/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export const syncNetworks = memoize(
.where("[accountAddress+tokenSlug]")
.equals([accountAddress, NATIVE_TOKEN_SLUG])
.toArray(),
fetchAllUsedNetworks(accountAddress),
fetchAllUsedNetworks(accountAddress).catch((err) => {
console.error(err);
return [];
}),
]);

const existingTokensMap = new Map(
Expand Down

0 comments on commit 2bdc12e

Please sign in to comment.