mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Allow sending transactions with hex data and no recipient
This commit is contained in:
parent
23aabcca6f
commit
508a712479
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user