Enable buy to n-n Copay wallet (#4117)

This commit is contained in:
Gustavo Maximiliano Cortez 2016-04-22 17:06:32 -03:00 committed by Matias Alejo Garcia
commit cab093881e

View file

@ -10,7 +10,7 @@ angular.module('copayApp.controllers').controller('buyCoinbaseController',
var otherWallets = function(testnet) { var otherWallets = function(testnet) {
var network = testnet ? 'testnet' : 'livenet'; var network = testnet ? 'testnet' : 'livenet';
return lodash.filter(profileService.getWallets(network), function(w) { return lodash.filter(profileService.getWallets(network), function(w) {
return w.network == network && w.m == 1; return w.network == network;
}); });
}; };
@ -75,6 +75,7 @@ angular.module('copayApp.controllers').controller('buyCoinbaseController',
self.error = bwsError.msg({ self.error = bwsError.msg({
'code': 'WALLET_NOT_COMPLETE' 'code': 'WALLET_NOT_COMPLETE'
}, 'Could not choose the wallet'); }, 'Could not choose the wallet');
self.error = {errors: [{ message: 'The Wallet could not be selected' }]};
$modalInstance.dismiss('cancel'); $modalInstance.dismiss('cancel');
return; return;
} }