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

Allow from and to address to be the same in new-ui.

This commit is contained in:
Dan 2018-04-04 21:52:12 -02:30
parent 1153120fe8
commit 2199b3720c

View File

@ -254,7 +254,6 @@ SendTransactionScreen.prototype.handleToChange = function (to, nickname = '') {
const {
updateSendTo,
updateSendErrors,
from: {address: from},
} = this.props
let toError = null
@ -262,8 +261,6 @@ SendTransactionScreen.prototype.handleToChange = function (to, nickname = '') {
toError = this.context.t('required')
} else if (!isValidAddress(to)) {
toError = this.context.t('invalidAddressRecipient')
} else if (to === from) {
toError = this.context.t('fromToSame')
}
updateSendTo(to, nickname)