Fix balance value when sign out (a wallet with btc) and create a new wallet (this showed value of the previous wallet)

This commit is contained in:
Gustavo Cortez 2014-04-17 11:23:04 -03:00
parent 9fdb04e868
commit dd62ab16d1
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ angular.module('copay.header').controller('HeaderController',
if (w) {
w.disconnect();
delete $rootScope['wallet'];
$rootScope.totalBalance = 0;
$location.path('signin');
}
};