fix receive wallet scope

This commit is contained in:
Javier 2016-08-24 11:21:07 -03:00
commit fee7034863
3 changed files with 9 additions and 2 deletions

View file

@ -43,8 +43,11 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
};
$scope.$on('Wallet/Changed', function(event, wallet) {
if (!wallet) {
$log.debug('No wallet provided');
return;
}
$log.debug('Wallet changed: ' + wallet.name);
$scope.defaultWallet = wallet;
$scope.setAddress(wallet);
});