Explorer: Fix crash on failed anchor account parsing (#29760)
Fix crash on failed anchor account parsing
This commit is contained in:
parent
9f2910e962
commit
df92d8ff3d
|
@ -27,7 +27,11 @@ export function AnchorAccountCard({ account }: { account: Account }) {
|
||||||
);
|
);
|
||||||
if (accountDefTmp) {
|
if (accountDefTmp) {
|
||||||
accountDef = accountDefTmp;
|
accountDef = accountDefTmp;
|
||||||
decodedAccountData = coder.decode(accountDef.name, rawData);
|
try {
|
||||||
|
decodedAccountData = coder.decode(accountDef.name, rawData);
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue