1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Don't prevent user from setting an eth address in to field if there is no ens support.

This commit is contained in:
Dan 2018-04-04 15:45:29 -02:30
parent 9930f5996c
commit 40bbca5d0d

View File

@ -32,10 +32,10 @@ EnsInput.prototype.render = function () {
const network = this.props.network const network = this.props.network
const networkHasEnsSupport = getNetworkEnsSupport(network) const networkHasEnsSupport = getNetworkEnsSupport(network)
if (!networkHasEnsSupport) return
props.onChange(recipient) props.onChange(recipient)
if (!networkHasEnsSupport) return
if (recipient.match(ensRE) === null) { if (recipient.match(ensRE) === null) {
return this.setState({ return this.setState({
loadingEns: false, loadingEns: false,