diff options
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] |