diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-25 16:12:53 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-25 16:12:53 +0800 |
commit | ff7e7db9ec85178d8631bd42943b0b2e0e934956 (patch) | |
tree | 8dc8b31e3660d3712e2045a7a89dee0200d375bf /ui | |
parent | 0d522139ba7c5372e0ef4219a69a4b8e8f83706a (diff) | |
download | tangerine-wallet-browser-ff7e7db9ec85178d8631bd42943b0b2e0e934956.tar tangerine-wallet-browser-ff7e7db9ec85178d8631bd42943b0b2e0e934956.tar.gz tangerine-wallet-browser-ff7e7db9ec85178d8631bd42943b0b2e0e934956.tar.bz2 tangerine-wallet-browser-ff7e7db9ec85178d8631bd42943b0b2e0e934956.tar.lz tangerine-wallet-browser-ff7e7db9ec85178d8631bd42943b0b2e0e934956.tar.xz tangerine-wallet-browser-ff7e7db9ec85178d8631bd42943b0b2e0e934956.tar.zst tangerine-wallet-browser-ff7e7db9ec85178d8631bd42943b0b2e0e934956.zip |
From and To field cannot be the same
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/send-v2.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js index 3775603b8..e772477ae 100644 --- a/ui/app/send-v2.js +++ b/ui/app/send-v2.js @@ -180,13 +180,19 @@ SendTransactionScreen.prototype.renderFromRow = function () { } SendTransactionScreen.prototype.handleToChange = function (to) { - const { updateSendTo, updateSendErrors } = this.props + const { + updateSendTo, + updateSendErrors, + from: {address: from}, + } = this.props let toError = null if (!to) { toError = 'Required' } else if (!isValidAddress(to)) { - toError = 'Recipient address is invalid.' + toError = 'Recipient address is invalid' + } else if (to === from) { + toError = 'From and To address cannot be the same' } updateSendTo(to) |