Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(presenter): Catch and ignore presenter errors (#1915)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximebedard committed Dec 14, 2022
1 parent bc9a28d commit 4553800
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/balance/balance-presentation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,12 @@ export class BalancePresentationService {
if (!groupBalances.length) return;

const groupMetaResolver = balanceMetaResolvers?.get(group.label);
const meta = groupMetaResolver && (await groupMetaResolver(address, balances).catch(_ => undefined));

return {
label: computedGroupLabel,
assets: balances,
...(groupMetaResolver && { meta: await groupMetaResolver(address, balances) }),
...(meta && { meta }),
};
}),
).then(v => _.compact(v));
Expand Down

0 comments on commit 4553800

Please sign in to comment.