Fix: App Crash on decoded data opening when tx-builder send ETH to multiple EOA (#2208)

* Fix: bytes value for decodedData
This commit is contained in:
nicolas 2021-05-03 06:48:15 -03:00 committed by GitHub
parent 42291e1208
commit 6dd3a781a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ export const BasicTxInfo = ({
Data (hex encoded):
</Text>
<FlexWrapper margin={5}>
<Text size="lg">{web3.utils.hexToBytes(txData).length} bytes</Text>
<Text size="lg">{txData ? web3.utils.hexToBytes(txData).length : 0} bytes</Text>
<CopyToClipboardBtn textToCopy={txData} />
</FlexWrapper>
</>