This commit is contained in:
Matias Alejo Garcia 2016-10-15 09:47:52 -03:00
commit 41b8c7f064
No known key found for this signature in database
GPG key ID: 02470DB551277AB3

View file

@ -113,7 +113,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
var updateHasFunds = function() {
$scope.hasFunds = true;
if ($rootScope.everHasFunds) {
if ($rootScope.everHadFunds) {
return;
}
@ -139,7 +139,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
}
walletsTotalBalance = walletsTotalBalance + status.availableBalanceSat;
if (walletsTotalBalance > 0) {
$rootScope.everHasFunds = true;
$rootScope.everHadFunds = true;
}
if (index == wallets.length && walletsTotalBalance == 0) {
$scope.hasFunds = false;