This commit is contained in:
Matias Alejo Garcia 2016-10-15 09:45:44 -03:00
commit 934409433e
No known key found for this signature in database
GPG key ID: 02470DB551277AB3

View file

@ -113,8 +113,9 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
var updateHasFunds = function() {
$scope.hasFunds = true;
if ($rootScope.everHasFunds)
if ($rootScope.everHasFunds) {
return;
}
var wallets = profileService.getWallets({
onlyComplete: true,
@ -137,7 +138,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
return;
}
walletsTotalBalance = walletsTotalBalance + status.availableBalanceSat;
if (walletsTotalBalance>0) {
if (walletsTotalBalance > 0) {
$rootScope.everHasFunds = true;
}
if (index == wallets.length && walletsTotalBalance == 0) {