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:
parent
1153120fe8
commit
2199b3720c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user