fix wallet encrypted handler
This commit is contained in:
parent
5dcae277a0
commit
69f343fd99
1 changed files with 4 additions and 4 deletions
|
|
@ -29,14 +29,14 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi
|
||||||
|
|
||||||
fingerprintService.check(fc, function(err) {
|
fingerprintService.check(fc, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$scope.error = err;
|
$scope.error = bwsError.msg(err);
|
||||||
$scope.loading = null;
|
$scope.loading = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
handleEncryptedWallet(function(err) {
|
handleEncryptedWallet(function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$scope.error = err;
|
$scope.error = bwsError.msg(err);
|
||||||
$scope.loading = null;
|
$scope.loading = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -44,7 +44,7 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi
|
||||||
walletService.signTx(fc, txp, function(err, signedTxp) {
|
walletService.signTx(fc, txp, function(err, signedTxp) {
|
||||||
walletService.lock(fc);
|
walletService.lock(fc);
|
||||||
if (err) {
|
if (err) {
|
||||||
$scope.error = err;
|
$scope.error = bwsError.msg(err);
|
||||||
$scope.loading = null;
|
$scope.loading = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -211,7 +211,7 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi
|
||||||
if (!walletService.isEncrypted(fc)) return cb();
|
if (!walletService.isEncrypted(fc)) return cb();
|
||||||
$rootScope.$emit('Local/NeedsPassword', false, function(err, password) {
|
$rootScope.$emit('Local/NeedsPassword', false, function(err, password) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
return cb(null, walletService.unlock(fc, password));
|
return cb(walletService.unlock(fc, password));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue