From dd62ab16d1ae6c5ef984b45a780357936052eaea Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Thu, 17 Apr 2014 11:23:04 -0300 Subject: [PATCH] Fix balance value when sign out (a wallet with btc) and create a new wallet (this showed value of the previous wallet) --- js/controllers/header.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/controllers/header.js b/js/controllers/header.js index 0d388a4a6..1ac0931b2 100644 --- a/js/controllers/header.js +++ b/js/controllers/header.js @@ -40,6 +40,7 @@ angular.module('copay.header').controller('HeaderController', if (w) { w.disconnect(); delete $rootScope['wallet']; + $rootScope.totalBalance = 0; $location.path('signin'); } };