1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Allow sending transactions with hex data and no recipient

This commit is contained in:
Whymarrh Whitby 2018-09-27 10:07:41 -02:30
parent 23aabcca6f
commit 508a712479

View File

@ -86,9 +86,9 @@ export default class SendFooter extends Component {
}
formShouldBeDisabled () {
const { inError, selectedToken, tokenBalance, gasTotal, to } = this.props
const { data, inError, selectedToken, tokenBalance, gasTotal, to } = this.props
const missingTokenBalance = selectedToken && !tokenBalance
return inError || !gasTotal || missingTokenBalance || !to
return inError || !gasTotal || missingTokenBalance || !(data || to)
}
render () {