fix error with JSONTree empty at start

This commit is contained in:
Jonathan Rainville 2018-10-03 16:14:58 -04:00 committed by Pascal Precht
parent feea4c27fc
commit 5fcd1e679d
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ const Contract = ({contract, match}) => {
<Card.Title>ABI</Card.Title> <Card.Title>ABI</Card.Title>
</Card.Header> </Card.Header>
<Card.Body> <Card.Body>
<JSONTree data={contract.abiDefinition} /> {contract.abiDefinition && <JSONTree data={contract.abiDefinition} />}
</Card.Body> </Card.Body>
</Card> </Card>
<Card> <Card>