Correction for #3692, cloneDeep() must be used otherwise defaultConfig gets overwritten.

This commit is contained in:
Andy Phillipson 2016-02-16 16:56:14 -05:00
parent 94a0ffa02e
commit 52faba1abd
1 changed files with 1 additions and 1 deletions

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);