Shows "Empty case" send screen after sending all funds from wallets.
This commit is contained in:
parent
a3ef304e09
commit
e299422843
1 changed files with 1 additions and 7 deletions
|
|
@ -132,11 +132,6 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
|
|
||||||
var updateHasFunds = function() {
|
var updateHasFunds = function() {
|
||||||
|
|
||||||
if ($rootScope.everHasFunds) {
|
|
||||||
$scope.hasFunds = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.hasFunds = false;
|
$scope.hasFunds = false;
|
||||||
var index = 0;
|
var index = 0;
|
||||||
lodash.each($scope.wallets, function(w) {
|
lodash.each($scope.wallets, function(w) {
|
||||||
|
|
@ -151,10 +146,9 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
$scope.hasFunds = true;
|
$scope.hasFunds = true;
|
||||||
} else if (status.availableBalanceSat > 0) {
|
} else if (status.availableBalanceSat > 0) {
|
||||||
$scope.hasFunds = true;
|
$scope.hasFunds = true;
|
||||||
$rootScope.everHasFunds = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index == $scope.wallets.length) {
|
if (index === $scope.wallets.length) {
|
||||||
$scope.checkingBalance = false;
|
$scope.checkingBalance = false;
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue