diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index 44a2b13..664058f 100755 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -334,14 +334,17 @@ router.get("/address/:address", function(req, res) { console.log(obj.received); - balance = obj.balance; - received = obj.received; + res.locals.balance = obj.balance; + res.locals.received = obj.received; console.log(stderr); if (error !== null) { console.log(`exec error: ${error}`); } + + res.render("address"); + }); /* @@ -371,7 +374,7 @@ router.get("/address/:address", function(req, res) { }); */ - res.render("address"); + });