From 40d2b7fe71b6e70e5f058aac4f6306ef005fd69b Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Fri, 8 Jul 2016 17:39:15 -0700 Subject: lint --- ui/app/components/eth-balance-tx-history.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ui') 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 -- cgit v1.2.3