aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/util.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-08-23 02:59:08 +0800
committerDan Finlay <dan@danfinlay.com>2016-08-23 02:59:08 +0800
commit3d451ddf3e59e8d4ac610b7e6a01a59beed4f944 (patch)
tree93193c3014065d00fc14d2efcdca8a11c63e2e4a /ui/app/util.js
parent8592ffd85582612ae18b5f4e5ed6749401f86f3b (diff)
parent3756384da6cb7d1566271cb99ec561d3b051a4ac (diff)
downloadtangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar.gz
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar.bz2
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar.lz
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar.xz
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar.zst
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.zip
Merge branch 'master' into i390-TransactionLimit
Diffstat (limited to 'ui/app/util.js')
-rw-r--r--ui/app/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/util.js b/ui/app/util.js
index 2d1c753dd..e4b77e2bc 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -92,8 +92,8 @@ function parseBalance (balance) {
// 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)
+function formatBalance (balance, decimalsToKeep, needsParse = true) {
+ var parsed = needsParse ? parseBalance(balance) : balance.split('.')
var beforeDecimal = parsed[0]
var afterDecimal = parsed[1]
var formatted = 'None'