aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-21 02:35:41 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-12-21 09:37:18 +0800
commit5fe3c5aae6756f225edd0f8646ac0a23c264a81c (patch)
tree9eaac0fb78f24b63f0175c5d374390c2f454cd7b
parentbf4043c59bb67ea93599207d91cb7a4f4426e75f (diff)
downloadtangerine-wallet-browser-5fe3c5aae6756f225edd0f8646ac0a23c264a81c.tar
tangerine-wallet-browser-5fe3c5aae6756f225edd0f8646ac0a23c264a81c.tar.gz
tangerine-wallet-browser-5fe3c5aae6756f225edd0f8646ac0a23c264a81c.tar.bz2
tangerine-wallet-browser-5fe3c5aae6756f225edd0f8646ac0a23c264a81c.tar.lz
tangerine-wallet-browser-5fe3c5aae6756f225edd0f8646ac0a23c264a81c.tar.xz
tangerine-wallet-browser-5fe3c5aae6756f225edd0f8646ac0a23c264a81c.tar.zst
tangerine-wallet-browser-5fe3c5aae6756f225edd0f8646ac0a23c264a81c.zip
Lint fixes.
-rw-r--r--ui/app/components/pending-tx/confirm-send-token.js3
-rw-r--r--ui/app/components/send/send-v2-container.js1
-rw-r--r--ui/app/conf-tx.js2
-rw-r--r--ui/app/send-v2.js2
4 files changed, 2 insertions, 6 deletions
diff --git a/ui/app/components/pending-tx/confirm-send-token.js b/ui/app/components/pending-tx/confirm-send-token.js
index a07835911..aa4f29fb0 100644
--- a/ui/app/components/pending-tx/confirm-send-token.js
+++ b/ui/app/components/pending-tx/confirm-send-token.js
@@ -2,7 +2,6 @@ const Component = require('react').Component
const { connect } = require('react-redux')
const h = require('react-hyperscript')
const inherits = require('util').inherits
-const ethAbi = require('ethereumjs-abi')
const tokenAbi = require('human-standard-token-abi')
const abiDecoder = require('abi-decoder')
abiDecoder.addABI(tokenAbi)
@@ -415,7 +414,7 @@ ConfirmSendToken.prototype.onSubmit = function (event) {
ConfirmSendToken.prototype.cancel = function (event, txMeta) {
event.preventDefault()
- const { send, cancelTransaction } = this.props
+ const { cancelTransaction } = this.props
cancelTransaction(txMeta)
}
diff --git a/ui/app/components/send/send-v2-container.js b/ui/app/components/send/send-v2-container.js
index ff7714e82..2d2ed4546 100644
--- a/ui/app/components/send/send-v2-container.js
+++ b/ui/app/components/send/send-v2-container.js
@@ -79,7 +79,6 @@ function mapDispatchToProps (dispatch) {
updateSendErrors: newError => dispatch(actions.updateSendErrors(newError)),
goHome: () => dispatch(actions.goHome()),
clearSend: () => dispatch(actions.clearSend()),
- backToConfirmScreen: editingTransactionId => dispatch(actions.showConfTxPage({ id: editingTransactionId })),
setMaxModeTo: bool => dispatch(actions.setMaxModeTo(bool)),
}
}
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js
index d71e4b35f..9f273aaec 100644
--- a/ui/app/conf-tx.js
+++ b/ui/app/conf-tx.js
@@ -115,7 +115,7 @@ function currentTxView (opts) {
log.info('rendering current tx view')
const { txData } = opts
const { txParams, msgParams } = txData
- console.log(`22222 currentTxView txData`, txData);
+
if (txParams) {
log.debug('txParams detected, rendering pending tx')
return h(PendingTx, opts)
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 617211b20..1c0ff3aea 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -608,8 +608,6 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
selectedToken,
editingTransactionId,
errors: { amount: amountError, to: toError },
- backToConfirmScreen,
- unapprovedTxs,
} = this.props
const noErrors = !amountError && toError === null