diff --git a/js/services/pinService.js b/js/services/pinService.js index f320f3a3c..914bdcee8 100644 --- a/js/services/pinService.js +++ b/js/services/pinService.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('copayApp.services') - .factory('pinService', function($rootScope, localstorageService) { + .factory('pinService', function($rootScope, $timeout, localstorageService) { var KEY = 'pinDATA'; var SALT = '4gllotIKguqi0EkIslC0'; @@ -58,7 +58,9 @@ angular.module('copayApp.services') this['_' + name] = newValue; scope.error = null; if (newValue && newValue.length == 4) { - return cb(newValue); + $timeout(function() { + return cb(newValue); + }, 30); } }, enumerable: true,