mirror of https://github.com/BTCPrivate/copay.git
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:
parent
9fdb04e868
commit
dd62ab16d1
|
@ -40,6 +40,7 @@ angular.module('copay.header').controller('HeaderController',
|
||||||
if (w) {
|
if (w) {
|
||||||
w.disconnect();
|
w.disconnect();
|
||||||
delete $rootScope['wallet'];
|
delete $rootScope['wallet'];
|
||||||
|
$rootScope.totalBalance = 0;
|
||||||
$location.path('signin');
|
$location.path('signin');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue