fix signout

This commit is contained in:
Matias Alejo Garcia 2014-04-24 17:54:43 -03:00
commit 5fc4ab5101
3 changed files with 9 additions and 5 deletions

View file

@ -4,6 +4,8 @@ angular.module('copay.controllerUtils').factory('controllerUtils', function ($ro
var root = {};
root.logout = function() {
console.log('### DELETING WALLET'); //TODO
$rootScope.wallet = null;
delete $rootScope['wallet'];
$rootScope.totalBalance = 0;
$location.path('signin');