This commit is contained in:
Matias Alejo Garcia 2016-03-09 16:10:44 -03:00
commit 3b6d656c50
2 changed files with 7 additions and 3 deletions

View file

@ -1558,12 +1558,16 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setFocusedWallet();
self.updateHistory();
storageService.getCleanAndScanAddresses(function(err, walletId) {
if (walletId && profileService.walletClients[walletId]) {
$log.debug('Clear last address cache and Scan ', walletId);
addressService.expireAddress(walletId, function(err) {
self.startScan(walletId);
});
storageService.removeCleanAndScanAddresses(function() {});
storageService.removeCleanAndScanAddresses(function() {
$rootScope.$emit('Local/NewFocusedWalletReady');
});
} else {
$rootScope.$emit('Local/NewFocusedWalletReady');
}
});

View file

@ -52,7 +52,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
self.resetForm();
$scope.search = '';
if (profileService.focusedClient && rofileService.focusedClient.isComplete) {
if (profileService.focusedClient && profileService.focusedClient.isComplete) {
self.setAddress();
self.setSendFormInputs();
}