From 459ec5e699f93a793649a5c49a06d69cc5e4c312 Mon Sep 17 00:00:00 2001 From: Chris Li <76067158+666lcz@users.noreply.github.com> Date: Wed, 25 May 2022 18:13:06 -0700 Subject: [PATCH] [Explorer] Do not throw on batch transactions (#2222) --- .../client/src/components/transaction-card/RecentTxCard.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/explorer/client/src/components/transaction-card/RecentTxCard.tsx b/explorer/client/src/components/transaction-card/RecentTxCard.tsx index e4f7e35595d29..3facc3ad431c6 100644 --- a/explorer/client/src/components/transaction-card/RecentTxCard.tsx +++ b/explorer/client/src/components/transaction-card/RecentTxCard.tsx @@ -74,9 +74,11 @@ async function getRecentTransactions( // TODO: handle multiple transactions const txns = getTransactions(res); if (txns.length > 1) { - throw new Error( - `Handling multiple transactions is not yet supported` + console.error( + 'Handling multiple transactions is not yet supported', + txEff ); + return null; } const txn = txns[0]; const txKind = getTransactionKindName(txn);