Merge pull request #4302 from JDonadio/fix/addressbook-error

Fix addressbook error
This commit is contained in:
Gustavo Maximiliano Cortez 2016-06-08 09:52:29 -03:00
commit c015829e07
1 changed files with 2 additions and 2 deletions

View File

@ -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;