aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2017-11-10 06:23:10 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-11-11 06:07:27 +0800
commit5120cfdff3047e4bf88cec544895cc713d063cdd (patch)
tree883e918b64c2b7ace6b968dd5499794c404f5c40 /ui/app
parent62f2aebe1d9c3efd6ace8785fc96bb43ae08afe8 (diff)
downloadtangerine-wallet-browser-5120cfdff3047e4bf88cec544895cc713d063cdd.tar
tangerine-wallet-browser-5120cfdff3047e4bf88cec544895cc713d063cdd.tar.gz
tangerine-wallet-browser-5120cfdff3047e4bf88cec544895cc713d063cdd.tar.bz2
tangerine-wallet-browser-5120cfdff3047e4bf88cec544895cc713d063cdd.tar.lz
tangerine-wallet-browser-5120cfdff3047e4bf88cec544895cc713d063cdd.tar.xz
tangerine-wallet-browser-5120cfdff3047e4bf88cec544895cc713d063cdd.tar.zst
tangerine-wallet-browser-5120cfdff3047e4bf88cec544895cc713d063cdd.zip
Linting
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/currency-input.js2
-rw-r--r--ui/app/components/customize-gas-modal/index.js2
-rw-r--r--ui/app/components/send/send-utils.js4
-rw-r--r--ui/app/conversion-util.js4
-rw-r--r--ui/app/send-v2.js6
5 files changed, 9 insertions, 9 deletions
diff --git a/ui/app/components/currency-input.js b/ui/app/components/currency-input.js
index 5e534d87b..f192ee531 100644
--- a/ui/app/components/currency-input.js
+++ b/ui/app/components/currency-input.js
@@ -40,7 +40,7 @@ function sanitizeDecimal (val) {
// sanitizeValue('.200') -> '0.200'
// sanitizeValue('a.b.1.c,89.123') -> '0.189123'
function sanitizeValue (value) {
- let [,integer, point, decimal] = (/([^.]*)([.]?)([^.]*)/).exec(value)
+ let [integer, point, decimal] = (/([^.]*)([.]?)([^.]*)/).exec(value)
integer = sanitizeInteger(integer) || '0'
decimal = sanitizeDecimal(decimal)
diff --git a/ui/app/components/customize-gas-modal/index.js b/ui/app/components/customize-gas-modal/index.js
index b77e1990f..f01f42fe0 100644
--- a/ui/app/components/customize-gas-modal/index.js
+++ b/ui/app/components/customize-gas-modal/index.js
@@ -115,7 +115,7 @@ CustomizeGasModal.prototype.validate = function ({ gasTotal, gasLimit }) {
} = this.props
let error = null
-
+
const balanceIsSufficient = isBalanceSufficient({
amount,
gasTotal,
diff --git a/ui/app/components/send/send-utils.js b/ui/app/components/send/send-utils.js
index bd1197950..d8211930d 100644
--- a/ui/app/components/send/send-utils.js
+++ b/ui/app/components/send/send-utils.js
@@ -7,7 +7,7 @@ const {
calcTokenAmount,
} = require('../../token-util')
-function isBalanceSufficient({
+function isBalanceSufficient ({
amount = '0x0',
gasTotal = '0x0',
balance,
@@ -39,7 +39,7 @@ function isBalanceSufficient({
return balanceIsSufficient
}
-function isTokenBalanceSufficient({
+function isTokenBalanceSufficient ({
amount = '0x0',
tokenBalance,
decimals,
diff --git a/ui/app/conversion-util.js b/ui/app/conversion-util.js
index ee2950071..de37bd595 100644
--- a/ui/app/conversion-util.js
+++ b/ui/app/conversion-util.js
@@ -151,7 +151,7 @@ const subtractCurrencies = (a, b, options = {}) => {
bBase,
...conversionOptions
} = options
- const value = (new BigNumber(a, aBase)).minus(b, bBase);
+ const value = (new BigNumber(a, aBase)).minus(b, bBase)
return converter({
value,
@@ -183,7 +183,7 @@ const conversionGreaterThan = (
) => {
const firstValue = converter({ ...firstProps })
const secondValue = converter({ ...secondProps })
-
+
return firstValue.gt(secondValue)
}
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 0cef47b27..690af7e5c 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -106,7 +106,7 @@ SendTransactionScreen.prototype.componentWillMount = function () {
.all([
getGasPrice(),
estimateGas(estimateGasParams),
- tokenContract && tokenContract.balanceOf(from.address)
+ tokenContract && tokenContract.balanceOf(from.address),
])
.then(([gasPrice, gas, usersToken]) => {
@@ -352,7 +352,7 @@ SendTransactionScreen.prototype.validateAmount = function (value) {
let amountError = null
const sufficientBalance = isBalanceSufficient({
- amount: selectedToken ? '0x0' : amount,
+ amount: selectedToken ? '0x0' : amount,
gasTotal,
balance,
primaryCurrency,
@@ -395,7 +395,7 @@ SendTransactionScreen.prototype.renderAmountRow = function () {
amount,
} = this.props
return h('div.send-v2__form-row', [
-
+
h('div.send-v2__form-label', [
'Amount:',
this.renderErrorMessage('amount'),