Enable buy to n-n Copay wallet (#4117)
This commit is contained in:
parent
16c25a1572
commit
cab093881e
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue