From 69f343fd99498c0bbd7b7b7c820ba79b355a0897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Fri, 8 Jul 2016 12:12:26 -0300 Subject: [PATCH] fix wallet encrypted handler --- src/js/controllers/modals/txpDetails.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/controllers/modals/txpDetails.js b/src/js/controllers/modals/txpDetails.js index 855e69cd9..3a8dc55cc 100644 --- a/src/js/controllers/modals/txpDetails.js +++ b/src/js/controllers/modals/txpDetails.js @@ -29,14 +29,14 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi fingerprintService.check(fc, function(err) { if (err) { - $scope.error = err; + $scope.error = bwsError.msg(err); $scope.loading = null; return; } handleEncryptedWallet(function(err) { if (err) { - $scope.error = err; + $scope.error = bwsError.msg(err); $scope.loading = null; return; } @@ -44,7 +44,7 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi walletService.signTx(fc, txp, function(err, signedTxp) { walletService.lock(fc); if (err) { - $scope.error = err; + $scope.error = bwsError.msg(err); $scope.loading = null; return; } @@ -211,7 +211,7 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi if (!walletService.isEncrypted(fc)) return cb(); $rootScope.$emit('Local/NeedsPassword', false, function(err, password) { if (err) return cb(err); - return cb(null, walletService.unlock(fc, password)); + return cb(walletService.unlock(fc, password)); }); };