diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-07 12:32:36 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-07 12:32:36 +0800 |
commit | 7481f7c3df72f5616615fcd74537d1f091b1bc4b (patch) | |
tree | e347c008ac35c463a7b07f36d5cf994f87aef723 /ui/app/util.js | |
parent | 689bd58d815ae91970953a08ef2e94c0eeb1335b (diff) | |
download | tangerine-wallet-browser-7481f7c3df72f5616615fcd74537d1f091b1bc4b.tar tangerine-wallet-browser-7481f7c3df72f5616615fcd74537d1f091b1bc4b.tar.gz tangerine-wallet-browser-7481f7c3df72f5616615fcd74537d1f091b1bc4b.tar.bz2 tangerine-wallet-browser-7481f7c3df72f5616615fcd74537d1f091b1bc4b.tar.lz tangerine-wallet-browser-7481f7c3df72f5616615fcd74537d1f091b1bc4b.tar.xz 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.js | 3 |
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] |