diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index 79e20f2ff..9fe8355f9 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -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) { diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 09ad6e0ff..9f5665823 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -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();