From a670e940a118287fed66e655e8826031940b4af2 Mon Sep 17 00:00:00 2001 From: coldstar Date: Wed, 26 May 2021 07:20:43 -0700 Subject: [PATCH] 05/26/2021 07:20:43 AM MST --- routes/baseActionsRouter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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');