mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #3884 from danjm/i3874-send-eth-to-self
Allow from and to address to be the same in new-ui.
This commit is contained in:
commit
54b84e2c3d
@ -254,7 +254,6 @@ SendTransactionScreen.prototype.handleToChange = function (to, nickname = '') {
|
|||||||
const {
|
const {
|
||||||
updateSendTo,
|
updateSendTo,
|
||||||
updateSendErrors,
|
updateSendErrors,
|
||||||
from: {address: from},
|
|
||||||
} = this.props
|
} = this.props
|
||||||
let toError = null
|
let toError = null
|
||||||
|
|
||||||
@ -262,8 +261,6 @@ SendTransactionScreen.prototype.handleToChange = function (to, nickname = '') {
|
|||||||
toError = this.context.t('required')
|
toError = this.context.t('required')
|
||||||
} else if (!isValidAddress(to)) {
|
} else if (!isValidAddress(to)) {
|
||||||
toError = this.context.t('invalidAddressRecipient')
|
toError = this.context.t('invalidAddressRecipient')
|
||||||
} else if (to === from) {
|
|
||||||
toError = this.context.t('fromToSame')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateSendTo(to, nickname)
|
updateSendTo(to, nickname)
|
||||||
|
Loading…
Reference in New Issue
Block a user