store profile if dirty after validation
This commit is contained in:
parent
b948996af8
commit
580b8e64fa
2 changed files with 3 additions and 2 deletions
|
|
@ -132,14 +132,13 @@ angular.module('copayApp.services')
|
|||
skipDeviceValidation: skipDeviceValidation,
|
||||
}, function(err, isOK) {
|
||||
$log.debug('ValidatingWallet End: ' + walletId + ' isOK:' + isOK);
|
||||
$rootScope.$emit('Local/ValidatingWalletEnded', walletId, isOK);
|
||||
|
||||
if (isOK) {
|
||||
root.profile.setChecked(platformInfo.ua, walletId);
|
||||
} else {
|
||||
$log.warn('Key Derivation failed for wallet:' + walletId);
|
||||
storageService.clearLastAddress(walletId, function() {});
|
||||
}
|
||||
$rootScope.$emit('Local/ValidatingWalletEnded', walletId, isOK);
|
||||
});
|
||||
}, 5000);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue