do not select wallet on 'ready' message

This commit is contained in:
Ivan Socolsky 2014-10-20 10:50:03 -03:00 committed by Matias Alejo Garcia
commit 3191ba200c
4 changed files with 6 additions and 4 deletions

View file

@ -31,6 +31,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
controllerUtils.onErrorDigest(
$scope, (err.toString() || '').match('PNOTFOUND') ? 'Profile not found' : 'Unknown error');
} else {
console.log('$rootScope.wallet -->', $rootScope.wallet, 'FIRST WALLET ->', firstWallet);
controllerUtils.bindProfile($scope, iden, firstWallet);
}
});

View file

@ -92,7 +92,7 @@ angular.module('copayApp.services')
});
w.on('ready', function(myPeerID) {
$scope.loading = false;
$rootScope.wallet = w;
//$rootScope.wallet = w;
if ($rootScope.initialConnection) {
$rootScope.initialConnection = false;
if ($rootScope.pendingPayment) {