enhance error handling

This commit is contained in:
Matias Alejo Garcia 2017-01-16 16:00:09 -03:00
commit f063c06751
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
17 changed files with 62 additions and 52 deletions

View file

@ -11,12 +11,8 @@ angular.module('copayApp.services').factory('emailService', function($log, confi
return w.credentials.walletId;
});
lodash.each(wallets, function(w) {
walletService.updateRemotePreferences(w, {
email: opts.enabled ? opts.email : null
}, function(err) {
if (err) $log.warn(err);
});
walletService.updateRemotePreferences(wallets, {
email: opts.enabled ? opts.email : null
});
var config = configService.getSync();