Fix tab-receive on mobile

This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-30 16:55:30 -03:00
commit b4ff226a0b
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -38,9 +38,7 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
if (err) popupService.showAlert(gettextCatalog.getString('Error'), err);
$scope.addr = addr;
if ($scope.wallet.showBackupNeededModal) $scope.openBackupNeededModal();
$timeout(function() {
$scope.$apply();
}, 100);
$scope.$apply();
});
};
@ -94,9 +92,8 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
}
$scope.wallet = wallet;
$log.debug('Wallet changed: ' + wallet.name);
$scope.setAddress();
$timeout(function() {
$scope.$apply();
$scope.setAddress();
}, 100);
});