Add the received wallet status to the wallet API object
This commit is contained in:
parent
ad4aa76902
commit
908dcbf968
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ angular.module('copayApp.controllers').controller('walletSelectorController', fu
|
|||
walletsAll.forEach(function forWallet(wallet) {
|
||||
if (!wallet.status) {
|
||||
walletService.getStatus(wallet, {}, function(err, status) {
|
||||
wallet.status = status;
|
||||
if (status.availableBalanceSat > ($scope.params.amount ? $scope.params.amount : 0)) {
|
||||
walletsSufficientFunds.push(wallet);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue