cashEnabled bug fixes

This commit is contained in:
Josh Harvey 2016-12-05 03:25:51 +02:00
parent 54611f6c17
commit b6568baa5c
3 changed files with 9 additions and 4 deletions

View file

@ -36,7 +36,7 @@ function generalScoped (crypto, machine, config) {
const keys = R.uniq(R.map(r => r.fieldLocator.code, config))
const keyedValues = keys.map(key => scopedValue(key, allScopes(key)))
return R.fromPairs(keys, keyedValues)
return R.zipObj(keys, keyedValues)
}
function machineScoped (machine, config) {