add store Profile on adding wallets

This commit is contained in:
Matias Alejo Garcia 2014-10-29 23:23:16 -03:00
commit 08dc892887
3 changed files with 16 additions and 15 deletions

View file

@ -30,8 +30,12 @@ angular.module('copayApp.services')
};
root.logout = function() {
if ($rootScope.iden)
$rootScope.iden.close();
if ($rootScope.iden) {
$rootScope.iden.store(null, function(){
$rootScope.iden.close();
});
}
delete $rootScope['wallet'];
delete $rootScope['iden'];