fix store config

This commit is contained in:
Matias Alejo Garcia 2015-04-26 20:13:02 -03:00
commit e38f9a4611
5 changed files with 14 additions and 8 deletions

View file

@ -29,7 +29,10 @@ angular.module('copayApp.controllers').controller('preferencesColorController',
opts.colorFor[walletId] = color;
configService.set(opts, function(err) {
if (err) console.log(err);
if (err) {
$scope.$emit('Local/DeviceError', err);
return;
}
self.color = color;
$scope.$emit('Local/ColorUpdated');
});