From 5bedc6b3668d6414a04fa8908fa8ea0f57d2193e Mon Sep 17 00:00:00 2001 From: coldstar Date: Tue, 25 May 2021 20:08:11 -0700 Subject: [PATCH] 05/25/2021 08:08:11 PM MST --- routes/baseActionsRouter.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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"); + });