diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-07-08 03:39:07 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-07-08 03:39:07 +0800 |
commit | cd8ae4b5ff5405e4129df897559cc35066492ea7 (patch) | |
tree | eb06881f49eafa8fe04dc718bd9759f68532664d /ui/app | |
parent | 0a6560bd5dcadd9dbdb96546b9273be0bb063916 (diff) | |
download | tangerine-wallet-browser-cd8ae4b5ff5405e4129df897559cc35066492ea7.tar tangerine-wallet-browser-cd8ae4b5ff5405e4129df897559cc35066492ea7.tar.gz tangerine-wallet-browser-cd8ae4b5ff5405e4129df897559cc35066492ea7.tar.bz2 tangerine-wallet-browser-cd8ae4b5ff5405e4129df897559cc35066492ea7.tar.lz tangerine-wallet-browser-cd8ae4b5ff5405e4129df897559cc35066492ea7.tar.xz tangerine-wallet-browser-cd8ae4b5ff5405e4129df897559cc35066492ea7.tar.zst tangerine-wallet-browser-cd8ae4b5ff5405e4129df897559cc35066492ea7.zip |
Change function name to generateBalanceObject
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/eth-balance.js | 4 | ||||
-rw-r--r-- | ui/app/util.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/components/eth-balance.js b/ui/app/components/eth-balance.js index e68c7b4db..e31b3ed97 100644 --- a/ui/app/components/eth-balance.js +++ b/ui/app/components/eth-balance.js @@ -2,7 +2,7 @@ const Component = require('react').Component const h = require('react-hyperscript') const inherits = require('util').inherits const formatBalance = require('../util').formatBalance -const mainBalanceObject = require('../util').mainBalanceObject +const generateBalanceObject = require('../util').generateBalanceObject const Tooltip = require('./tooltip.js') module.exports = EthBalanceComponent @@ -31,7 +31,7 @@ EthBalanceComponent.prototype.render = function () { } EthBalanceComponent.prototype.renderBalance = function (value) { if (value === 'None') return value - var balanceObj = mainBalanceObject(value) + var balanceObj = generateBalanceObject(value) var balance = balanceObj.balance var label = balanceObj.label diff --git a/ui/app/util.js b/ui/app/util.js index d686cf2c3..befb2aad8 100644 --- a/ui/app/util.js +++ b/ui/app/util.js @@ -26,7 +26,7 @@ module.exports = { numericBalance: numericBalance, parseBalance: parseBalance, formatBalance: formatBalance, - mainBalanceObject: mainBalanceObject, + generateBalanceObject: generateBalanceObject, dataSize: dataSize, readableDate: readableDate, ethToWei: ethToWei, @@ -118,7 +118,7 @@ function formatBalance (balance, decimalsToKeep) { return formatted } -function mainBalanceObject (formattedBalance) { +function generateBalanceObject (formattedBalance) { var balance = formattedBalance.split(' ')[0] var label = formattedBalance.split(' ')[1] var beforeDecimal = balance.split('.')[0] |