We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 116c725 commit 12da74bCopy full SHA for 12da74b
apps/namadillo/src/App/Transactions/TransactionCard.tsx
@@ -129,7 +129,13 @@ const getRedelegationTransactionInfo = (
129
tx: Tx["tx"]
130
): TransactionInfo | undefined => {
131
if (!tx?.data) return undefined;
132
- const parsed = typeof tx.data === "string" ? JSON.parse(tx.data) : tx.data;
+ let parsed;
133
+ try {
134
+ parsed = JSON.parse(tx.data);
135
+ } catch (error) {
136
+ parsed = tx.data;
137
+ }
138
+
139
return {
140
amount: BigNumber(parsed.amount),
141
sender: parsed.src_validator,
0 commit comments