From cba937eebc8fba591d8fd014fe4d277a24b8e5d2 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Dominguez Date: Fri, 18 May 2018 11:50:58 +0900 Subject: [PATCH] Fix - 322 - *lengh* -> *length* --- src/js/controllers/modals/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/controllers/modals/search.js b/src/js/controllers/modals/search.js index 082ef52cc..17b759226 100644 --- a/src/js/controllers/modals/search.js +++ b/src/js/controllers/modals/search.js @@ -57,7 +57,7 @@ angular.module('copayApp.controllers').controller('searchController', function($ $scope.searchTermIsAddress = true; } else if ((search[0] === "1" || search[0] === "3" || search.substring(0, 3) === "bc1") && search.length >= 26 && search.length <= 35) { // Legacy Addresses $scope.searchTermIsAddress = true; - } else if (search.lengh === 64) { + } else if (search.length === 64) { $scope.searchTermIsTxId = true; } }