faster tab switching

This commit is contained in:
Matias Alejo Garcia 2015-04-28 16:58:40 -03:00
commit a56507fe87
4 changed files with 20 additions and 13 deletions

View file

@ -406,8 +406,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
});
if (used) {
$log.debug('Address ' + addr + ' was used. Cleaning Cache.')
$rootScope.$emit('Local/NeedNewAddress', err);
storageService.clearLastAddress(self.walletId, function(err) {
$rootScope.$emit('Local/NeedNewAddress', err);
if (cb) return cb();
});
};