add store Profile on adding wallets
This commit is contained in:
parent
ae4dd9a54b
commit
08dc892887
3 changed files with 16 additions and 15 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue