diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index 664058f..51e28ad 100755 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -334,8 +334,8 @@ router.get("/address/:address", function(req, res) { console.log(obj.received); - res.locals.balance = obj.balance; - res.locals.received = obj.received; + res.locals.balance = parseInt(obj.balance) / 100000000; + res.locals.received = parseInt(obj.received) / 100000000; console.log(stderr); diff --git a/views/address.pug b/views/address.pug index a80771b..b1c8d9e 100644 --- a/views/address.pug +++ b/views/address.pug @@ -12,7 +12,7 @@ block content table(class="table") tr th(class="table-active properties-header") Balance - td(class="monospace") #{balance}/100000000).toLocaleString() + td(class="monospace") #{balance}.toLocaleString() tr th(class="table-active properties-header") Recieved - td(class="monospace") #{received}/100000000).toLocaleString() + td(class="monospace") #{received}.toLocaleString()