Merge pull request #3885 from ajp8164/master

Correction for #3692, cloneDeep() must be used otherwise defaultConfi…
This commit is contained in:
Gustavo Maximiliano Cortez 2016-02-17 10:15:15 -05:00
commit 41ea294b80

View file

@ -105,7 +105,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer
};
root.set = function(newOpts, cb) {
var config = lodash.clone(defaultConfig);
var config = lodash.cloneDeep(defaultConfig);
storageService.getConfig(function(err, oldOpts) {
if (lodash.isString(oldOpts)) {
oldOpts = JSON.parse(oldOpts);