mirror of https://github.com/embarklabs/embark.git
fix(embark-ui): don't show debug button for txs of silent contracts
This commit is contained in:
parent
fa89390ee0
commit
5161f54a39
|
@ -17,7 +17,8 @@ class DebugButton extends React.Component {
|
||||||
this.props.contracts &&
|
this.props.contracts &&
|
||||||
this.props.contracts.find(contract => {
|
this.props.contracts.find(contract => {
|
||||||
const address = this.props.transaction.to || this.props.transaction.address;
|
const address = this.props.transaction.to || this.props.transaction.address;
|
||||||
return contract.deployedAddress &&
|
return !contract.silent &&
|
||||||
|
contract.deployedAddress &&
|
||||||
address &&
|
address &&
|
||||||
(contract.deployedAddress.toLowerCase() === address.toLowerCase());
|
(contract.deployedAddress.toLowerCase() === address.toLowerCase());
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue