update wallets in the promise callback

This commit is contained in:
Sebastiaan Pasma 2018-09-13 09:54:53 +02:00
commit e6d8ddb360
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F

View file

@ -129,6 +129,11 @@ angular.module('copayApp.controllers').controller('walletSelectorController', fu
} else {
$scope.walletsInsufficientFunds.push(wallet);
}
if ($scope.coin === 'btc') { // As this is a promise
$scope.walletsBtc = walletsSufficientFunds;
} else {
$scope.walletsBch = walletsSufficientFunds;
}
ongoingProcess.set('scanning', false);
});
} else {