mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #4302 from JDonadio/fix/addressbook-error
Fix addressbook error
This commit is contained in:
commit
c015829e07
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('addressbookController', function($rootScope, $scope, $timeout, profileService, addressService, addressbookService) {
|
||||
angular.module('copayApp.controllers').controller('addressbookController', function($rootScope, $scope, $timeout, profileService, addressService, addressbookService, bwsError) {
|
||||
var self = $scope.self;
|
||||
|
||||
var fc = profileService.focusedClient;
|
||||
|
@ -119,7 +119,7 @@ angular.module('copayApp.controllers').controller('addressbookController', funct
|
|||
$scope.errorSelectedWallet = {};
|
||||
|
||||
profileService.isReady(client, function(err) {
|
||||
if (err) $scope.errorSelectedWallet[walletId] = err;
|
||||
if (err) $scope.errorSelectedWallet[walletId] = bwsError.msg(err);
|
||||
else {
|
||||
$scope.gettingAddress = true;
|
||||
$scope.selectedWalletName = walletName;
|
||||
|
|
Loading…
Reference in New Issue