Merge pull request #5669 from cmgustavo/bug/empty-app-after-refresh

Bug/empty app after refresh
This commit is contained in:
Javier Donadío 2017-02-23 12:04:41 -05:00 committed by GitHub
commit 52a690e31e
2 changed files with 15 additions and 1 deletions

View file

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