fix(embark-ui): don't show debug button for txs of silent contracts

This commit is contained in:
Michael Bradley, Jr 2019-03-18 17:42:07 -05:00 committed by Michael Bradley
parent fa89390ee0
commit 5161f54a39
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ class DebugButton extends React.Component {
this.props.contracts &&
this.props.contracts.find(contract => {
const address = this.props.transaction.to || this.props.transaction.address;
return contract.deployedAddress &&
return !contract.silent &&
contract.deployedAddress &&
address &&
(contract.deployedAddress.toLowerCase() === address.toLowerCase());
}));