aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-30 12:49:04 +0800
committerDan <danjm.com@gmail.com>2018-03-30 12:49:04 +0800
commit2be6f8bae0e516d49c83776a06dcbf82971a0a19 (patch)
treea069f2d2c348c378dcfe2380466c38830d4cf78d /ui
parent893f82491d549c9d61dfa1fb30ae1954c4efab68 (diff)
downloadtangerine-wallet-browser-2be6f8bae0e516d49c83776a06dcbf82971a0a19.tar
tangerine-wallet-browser-2be6f8bae0e516d49c83776a06dcbf82971a0a19.tar.gz
tangerine-wallet-browser-2be6f8bae0e516d49c83776a06dcbf82971a0a19.tar.bz2
tangerine-wallet-browser-2be6f8bae0e516d49c83776a06dcbf82971a0a19.tar.lz
tangerine-wallet-browser-2be6f8bae0e516d49c83776a06dcbf82971a0a19.tar.xz
tangerine-wallet-browser-2be6f8bae0e516d49c83776a06dcbf82971a0a19.tar.zst
tangerine-wallet-browser-2be6f8bae0e516d49c83776a06dcbf82971a0a19.zip
Fix lint and tests
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/pending-tx/confirm-send-ether.js4
-rw-r--r--ui/app/components/pending-tx/confirm-send-token.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/components/pending-tx/confirm-send-ether.js b/ui/app/components/pending-tx/confirm-send-ether.js
index 68c56d243..2474516d4 100644
--- a/ui/app/components/pending-tx/confirm-send-ether.js
+++ b/ui/app/components/pending-tx/confirm-send-ether.js
@@ -117,7 +117,7 @@ ConfirmSendEther.prototype.componentWillMount = function () {
updateSendErrors({
insufficientFunds: balanceIsSufficient
? false
- : this.props.t('insufficientFunds')
+ : this.context.t('insufficientFunds'),
})
}
@@ -495,7 +495,7 @@ ConfirmSendEther.prototype.onSubmit = function (event) {
if (valid && this.verifyGasParams() && balanceIsSufficient) {
this.props.sendTransaction(txMeta, event)
} else if (!balanceIsSufficient) {
- updateSendErrors({ insufficientFunds: this.props.t('insufficientFunds') })
+ updateSendErrors({ insufficientFunds: this.context.t('insufficientFunds') })
} else {
updateSendErrors({ invalidGasParams: this.context.t('invalidGasParams') })
this.setState({ submitting: false })
diff --git a/ui/app/components/pending-tx/confirm-send-token.js b/ui/app/components/pending-tx/confirm-send-token.js
index 503c2b19d..dd9fdc23f 100644
--- a/ui/app/components/pending-tx/confirm-send-token.js
+++ b/ui/app/components/pending-tx/confirm-send-token.js
@@ -160,7 +160,7 @@ ConfirmSendToken.prototype.componentWillMount = function () {
updateSendErrors({
insufficientFunds: balanceIsSufficient
? false
- : this.props.t('insufficientFunds')
+ : this.context.t('insufficientFunds'),
})
}
@@ -495,7 +495,7 @@ ConfirmSendToken.prototype.onSubmit = function (event) {
if (valid && this.verifyGasParams() && balanceIsSufficient) {
this.props.sendTransaction(txMeta, event)
} else if (!balanceIsSufficient) {
- updateSendErrors({ insufficientFunds: this.props.t('insufficientFunds') })
+ updateSendErrors({ insufficientFunds: this.context.t('insufficientFunds') })
} else {
updateSendErrors({ invalidGasParams: this.context.t('invalidGasParams') })
this.setState({ submitting: false })