diff --git a/src/components/DecodeTxs/index.tsx b/src/components/DecodeTxs/index.tsx index 703ef001..deb5f474 100644 --- a/src/components/DecodeTxs/index.tsx +++ b/src/components/DecodeTxs/index.tsx @@ -81,7 +81,7 @@ export const BasicTxInfo = ({ Data (hex encoded): - {web3.utils.hexToBytes(txData).length} bytes + {txData ? web3.utils.hexToBytes(txData).length : 0} bytes