fix details for incomplete wallets

This commit is contained in:
Matias Alejo Garcia 2016-08-25 18:20:18 -03:00
commit 4a2600e482
No known key found for this signature in database
GPG key ID: 02470DB551277AB3

View file

@ -195,6 +195,11 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
$scope.completeTxHistory = [];
wallet = profileService.getWallet($stateParams.walletId);
if (!wallet.isComplete()) {
return $state.go('wallet.copayers');
};
$scope.wallet = wallet;
$scope.requiresMultipleSignatures = wallet.credentials.m > 1;
$scope.newTx = false;