Return cached address while BWS returns main address GAP reached
This commit is contained in:
parent
fa4fd457a0
commit
fac553eb14
2 changed files with 7 additions and 23 deletions
|
|
@ -51,10 +51,7 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
$timeout(function() {
|
||||
walletService.getAddress($scope.wallet, forceNew, function(err, addr) {
|
||||
$scope.generatingAddress = false;
|
||||
if (err || lodash.isEmpty(addr)) {
|
||||
popupService.showAlert(gettextCatalog.getString('Error'), err || gettextCatalog.getString('Address is empty'));
|
||||
return;
|
||||
}
|
||||
if (err) popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||
$scope.addr = addr;
|
||||
$scope.$apply();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue