aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-06-06 03:22:02 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-06-06 03:22:02 +0800
commit0f69a09823928ec6aaf5189cf4d4f50c52c9debb (patch)
treebd00dc5c9edb27665ff15b7e4283469c83fcd16e
parent653319be1055b8ff0a36cb334c93ac7435f1fc5c (diff)
downloadtangerine-wallet-browser-0f69a09823928ec6aaf5189cf4d4f50c52c9debb.tar.gz
tangerine-wallet-browser-0f69a09823928ec6aaf5189cf4d4f50c52c9debb.tar.zst
tangerine-wallet-browser-0f69a09823928ec6aaf5189cf4d4f50c52c9debb.zip
Fix linting error
-rw-r--r--ui/app/components/pending-tx.js1
-rw-r--r--ui/app/send.js2
2 files changed, 1 insertions, 2 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 56c466506..18c378781 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -10,7 +10,6 @@ const hexToBn = require('../../../app/scripts/lib/hex-to-bn')
const util = require('../util')
const MiniAccountPanel = require('./mini-account-panel')
const EthBalance = require('./eth-balance')
-const util = require('../util')
const addressSummary = util.addressSummary
const nameForAddress = require('../../lib/contract-namer')
const BNInput = require('./bn-as-decimal-input')
diff --git a/ui/app/send.js b/ui/app/send.js
index 75a600dee..fd6994145 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -262,7 +262,7 @@ SendTransactionScreen.prototype.onSubmit = function () {
return this.props.dispatch(actions.displayWarning(message))
}
- if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData) {
+ if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData)) {
message = 'Recipient address is invalid.'
return this.props.dispatch(actions.displayWarning(message))
}