Merge pull request #5287 from gabrielbazan7/fix/emptysend

fix empty send view
This commit is contained in:
Javier Donadío 2016-12-19 17:51:57 -03:00 committed by GitHub
commit 241747f98f

View file

@ -133,6 +133,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
lodash.each(wallets, function(w) { lodash.each(wallets, function(w) {
walletService.getStatus(w, {}, function(err, status) { walletService.getStatus(w, {}, function(err, status) {
++index; ++index;
if (index == wallets.length) $scope.checkingBalance = false;
if (err || !status) { if (err || !status) {
$log.error(err); $log.error(err);
return; return;
@ -144,7 +145,6 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
} }
if (index == wallets.length) { if (index == wallets.length) {
$scope.checkingBalance = false;
if ($scope.hasFunds != true) { if ($scope.hasFunds != true) {
$ionicScrollDelegate.freezeScroll(true); $ionicScrollDelegate.freezeScroll(true);
} }