aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/util.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-07 12:32:36 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-07 12:32:36 +0800
commit7481f7c3df72f5616615fcd74537d1f091b1bc4b (patch)
treee347c008ac35c463a7b07f36d5cf994f87aef723 /ui/app/util.js
parent689bd58d815ae91970953a08ef2e94c0eeb1335b (diff)
downloadtangerine-wallet-browser-7481f7c3df72f5616615fcd74537d1f091b1bc4b.tar.gz
tangerine-wallet-browser-7481f7c3df72f5616615fcd74537d1f091b1bc4b.tar.zst
tangerine-wallet-browser-7481f7c3df72f5616615fcd74537d1f091b1bc4b.zip
Fleshed out pending tx view
Diffstat (limited to 'ui/app/util.js')
-rw-r--r--ui/app/util.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/util.js b/ui/app/util.js
index 86bf03667..1e92f0ea2 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -104,7 +104,8 @@ function parseBalance (balance) {
return [beforeDecimal, afterDecimal]
}
-// Takes wei hex, returns "None" or "${formattedAmount} ETH"
+// Takes wei hex, returns an object with three properties.
+// Its "formatted" property is what we generally use to render values.
function formatBalance (balance, decimalsToKeep) {
var parsed = parseBalance(balance)
var beforeDecimal = parsed[0]