format
This commit is contained in:
parent
0fbde71996
commit
934409433e
1 changed files with 3 additions and 2 deletions
|
|
@ -113,8 +113,9 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
var updateHasFunds = function() {
|
var updateHasFunds = function() {
|
||||||
$scope.hasFunds = true;
|
$scope.hasFunds = true;
|
||||||
|
|
||||||
if ($rootScope.everHasFunds)
|
if ($rootScope.everHasFunds) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var wallets = profileService.getWallets({
|
var wallets = profileService.getWallets({
|
||||||
onlyComplete: true,
|
onlyComplete: true,
|
||||||
|
|
@ -137,7 +138,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
walletsTotalBalance = walletsTotalBalance + status.availableBalanceSat;
|
walletsTotalBalance = walletsTotalBalance + status.availableBalanceSat;
|
||||||
if (walletsTotalBalance>0) {
|
if (walletsTotalBalance > 0) {
|
||||||
$rootScope.everHasFunds = true;
|
$rootScope.everHasFunds = true;
|
||||||
}
|
}
|
||||||
if (index == wallets.length && walletsTotalBalance == 0) {
|
if (index == wallets.length && walletsTotalBalance == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue