Merge pull request #5201 from cmgustavo/bug/amazon-enable-shared-single-signature

Enable buy Amazon gift cards for shared wallet with single signature
This commit is contained in:
Gabriel Edgardo Bazán 2016-12-12 10:37:04 -03:00 committed by GitHub
commit 878a512bc2
2 changed files with 7 additions and 1 deletions

View file

@ -56,7 +56,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
$scope.wallets = profileService.getWallets({
onlyComplete: true,
network: $scope.network,
n: $scope.isGiftCard ? true : false
m: $scope.isGiftCard ? 1 : null
});
if (!$scope.wallets || !$scope.wallets.length) {

View file

@ -765,6 +765,12 @@ angular.module('copayApp.services')
});
}
if (opts.m) {
ret = lodash.filter(ret, function(w) {
return (w.credentials.m == opts.m);
});
}
if (opts.onlyComplete) {
ret = lodash.filter(ret, function(w) {
return w.isComplete();