Show wallets with sufficient funds in order to top-up the bitpay card. Improves error messages
This commit is contained in:
parent
4c0da8c77e
commit
7c14c613ad
4 changed files with 41 additions and 18 deletions
|
|
@ -762,6 +762,18 @@ angular.module('copayApp.services')
|
|||
});
|
||||
}
|
||||
|
||||
if (opts.hasFunds) {
|
||||
ret = lodash.filter(ret, function(w) {
|
||||
return (w.status.availableBalanceSat > 0);
|
||||
});
|
||||
}
|
||||
|
||||
if (opts.minAmount) {
|
||||
ret = lodash.filter(ret, function(w) {
|
||||
return (w.status.availableBalanceSat > opts.minAmount);
|
||||
});
|
||||
}
|
||||
|
||||
if (opts.onlyComplete) {
|
||||
ret = lodash.filter(ret, function(w) {
|
||||
return w.isComplete();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue