mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #3875 from danjm/i3837-to-field-rinkeby-kovan
Don't prevent user from sending to eth address when no ENS support
This commit is contained in:
commit
2e70610423
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user