diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-30 10:46:59 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-30 10:46:59 +0800 |
commit | 8ace4710ffa1ca56e59e5888fd076fecfae8a911 (patch) | |
tree | feb69768f764c9bfb0d661ec970eb7b5850d8568 /ui/app/send.js | |
parent | 25259cc2cdadce71514d2e37cc9e0ea4bce21f40 (diff) | |
download | tangerine-wallet-browser-8ace4710ffa1ca56e59e5888fd076fecfae8a911.tar tangerine-wallet-browser-8ace4710ffa1ca56e59e5888fd076fecfae8a911.tar.gz tangerine-wallet-browser-8ace4710ffa1ca56e59e5888fd076fecfae8a911.tar.bz2 tangerine-wallet-browser-8ace4710ffa1ca56e59e5888fd076fecfae8a911.tar.lz tangerine-wallet-browser-8ace4710ffa1ca56e59e5888fd076fecfae8a911.tar.xz tangerine-wallet-browser-8ace4710ffa1ca56e59e5888fd076fecfae8a911.tar.zst tangerine-wallet-browser-8ace4710ffa1ca56e59e5888fd076fecfae8a911.zip |
Clean up send screen
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index a24989e56..873db8473 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -320,7 +320,11 @@ SendTransactionScreen.prototype.onSubmit = function () { const nickname = state.nickname || ' ' const input = document.querySelector('input[name="amount"]').value const value = util.normalizeEthStringToWei(input) - const txData = document.querySelector('input[name="txData"]').value + // TODO: check with team on whether txData is removed completely. + const txData = false; + // Must replace with memo data. + // const txData = document.querySelector('input[name="txData"]').value + const balance = this.props.balance let message @@ -339,7 +343,7 @@ SendTransactionScreen.prototype.onSubmit = function () { return this.props.dispatch(actions.displayWarning(message)) } - if (!isHex(ethUtil.stripHexPrefix(txData)) && txData) { + if (txData && !isHex(ethUtil.stripHexPrefix(txData))) { message = 'Transaction data must be hex string.' return this.props.dispatch(actions.displayWarning(message)) } |