Enable buy Amazon gift cards for shared wallet with single signature

This commit is contained in:
Gustavo Maximiliano Cortez 2016-12-12 09:58:17 -03:00
commit cdc4172224
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
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();