aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-07-09 08:39:15 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-07-09 08:39:15 +0800
commit40d2b7fe71b6e70e5f058aac4f6306ef005fd69b (patch)
tree52c584fedfa9b11825c4ab800b083d01d88ad26c /ui
parent20bfb60fd2ef84630a6f653b5f360c96d924b004 (diff)
downloadtangerine-wallet-browser-40d2b7fe71b6e70e5f058aac4f6306ef005fd69b.tar
tangerine-wallet-browser-40d2b7fe71b6e70e5f058aac4f6306ef005fd69b.tar.gz
tangerine-wallet-browser-40d2b7fe71b6e70e5f058aac4f6306ef005fd69b.tar.bz2
tangerine-wallet-browser-40d2b7fe71b6e70e5f058aac4f6306ef005fd69b.tar.lz
tangerine-wallet-browser-40d2b7fe71b6e70e5f058aac4f6306ef005fd69b.tar.xz
tangerine-wallet-browser-40d2b7fe71b6e70e5f058aac4f6306ef005fd69b.tar.zst
tangerine-wallet-browser-40d2b7fe71b6e70e5f058aac4f6306ef005fd69b.zip
lint
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/eth-balance-tx-history.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/app/components/eth-balance-tx-history.js b/ui/app/components/eth-balance-tx-history.js
index ca065416a..c3bdc2878 100644
--- a/ui/app/components/eth-balance-tx-history.js
+++ b/ui/app/components/eth-balance-tx-history.js
@@ -26,12 +26,12 @@ EthBalanceComponent.prototype.render = function () {
display: 'inline',
maxWidth: maxWidth,
},
- }, this.renderBalance(value,state)),
+ }, this.renderBalance(value, state)),
])
)
}
-EthBalanceComponent.prototype.renderBalance = function (value,state) {
+EthBalanceComponent.prototype.renderBalance = function (value, state) {
if (value === 'None') return value
var balanceObj = generateBalanceObject(value)
@@ -72,14 +72,14 @@ EthBalanceComponent.prototype.renderBalance = function (value,state) {
)
}
-function shortenBalance(balance) {
+function shortenBalance (balance) {
var truncatedValue
var convertedBalance = parseFloat(balance)
if (convertedBalance > 1000000) {
- truncatedValue = (balance/1000000).toFixed(1)
+ truncatedValue = (balance / 1000000).toFixed(1)
return `${truncatedValue}m`
} else if (convertedBalance > 1000) {
- truncatedValue = (balance/1000).toFixed(1)
+ truncatedValue = (balance / 1000).toFixed(1)
return `${truncatedValue}k`
} else {
return balance