Fix error log when refresh view from walletDetails

This commit is contained in:
Gustavo Maximiliano Cortez 2017-02-23 12:01:06 -03:00
commit 4ac070d29e
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -340,6 +340,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
$scope.$on("$ionicView.beforeEnter", function(event, data) { $scope.$on("$ionicView.beforeEnter", function(event, data) {
$scope.walletId = data.stateParams.walletId; $scope.walletId = data.stateParams.walletId;
$scope.wallet = profileService.getWallet($scope.walletId); $scope.wallet = profileService.getWallet($scope.walletId);
if (!$scope.wallet) return;
$scope.requiresMultipleSignatures = $scope.wallet.credentials.m > 1; $scope.requiresMultipleSignatures = $scope.wallet.credentials.m > 1;
addressbookService.list(function(err, ab) { addressbookService.list(function(err, ab) {