Fixed generateAddress in front-end. Fixed angular front-end when connection rejected
This commit is contained in:
parent
db4da73117
commit
86e47b8fcd
2 changed files with 7 additions and 9 deletions
|
|
@ -6,14 +6,13 @@ angular.module('copay.home').controller('HomeController',
|
|||
|
||||
$scope.oneAtATime = true;
|
||||
|
||||
if (!$rootScope.wallet.id) {
|
||||
if (!$rootScope.wallet || !$rootScope.wallet.id) {
|
||||
$location.path('signin');
|
||||
}
|
||||
|
||||
|
||||
|
||||
$scope.addrs = $rootScope.wallet.publicKeyRing.getAddresses();
|
||||
$scope.selectedAddr = $scope.addrs[0];
|
||||
else {
|
||||
$scope.addrs = $rootScope.wallet.publicKeyRing.getAddresses();
|
||||
$scope.selectedAddr = $scope.addrs[0];
|
||||
}
|
||||
|
||||
$scope.newAddr = function() {
|
||||
var a = $rootScope.wallet.publicKeyRing.generateAddress();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue