remove debug
This commit is contained in:
parent
d904c8391e
commit
43ac3f5923
3 changed files with 0 additions and 10 deletions
|
|
@ -197,8 +197,6 @@ function cryptoCodeDefaults (schema, cryptoCode) {
|
|||
const hasCryptoSpecificDefault = r => r.cryptoScope === 'specific' && !_.isNil(r.default)
|
||||
const cryptoSpecificFields = _.filter(hasCryptoSpecificDefault, schemaEntries)
|
||||
|
||||
pp('DEBUG202')({scope, cryptoCode})
|
||||
|
||||
return _.map(r => {
|
||||
const defaultValue = cryptoDefaultOverride(cryptoCode, r.code, r.default)
|
||||
|
||||
|
|
@ -208,7 +206,6 @@ function cryptoCodeDefaults (schema, cryptoCode) {
|
|||
|
||||
const uniqCompact = _.flow(_.compact, _.uniq)
|
||||
|
||||
const pp = require('./pp')
|
||||
function addCryptoDefaults (oldConfig, newFields) {
|
||||
const cryptoCodeEntries = _.filter(v => v.fieldLocator.code === 'cryptoCurrencies', newFields)
|
||||
const cryptoCodes = _.flatMap(_.get('fieldValue.value'), cryptoCodeEntries)
|
||||
|
|
@ -217,8 +214,6 @@ function addCryptoDefaults (oldConfig, newFields) {
|
|||
const mapDefaults = cryptoCode => cryptoCodeDefaults(schema, cryptoCode)
|
||||
const defaults = _.flatMap(mapDefaults, uniqueCryptoCodes)
|
||||
|
||||
pp('DEBUG201')({cryptoCodeEntries, cryptoCodes, uniqueCryptoCodes})
|
||||
pp('DEBUG200')(defaults)
|
||||
return mergeValues(defaults, oldConfig)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue