diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index c487eff..e8b98be 100755 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -197,7 +197,7 @@ router.post("/search", function(req, res) { query = query.replace(/,/g, ""); - if (query.stringLength < 9) { + if (query.length < 9) { if (typeof query == "number") { res.redirect("/block-height/" + query); console.log('This is a block'); @@ -207,7 +207,7 @@ router.post("/search", function(req, res) { console.log('Bigger than 9 char'); } - if (query.stringLength < 40) { + if (query.length < 40) { if (query.startsWith('V')) { res.redirect("/address/" + query); console.log('This is not number');