fix: variable depth issue on machineScreenOpts
This commit is contained in:
parent
3b12dd5608
commit
aef84142c7
1 changed files with 10 additions and 5 deletions
|
|
@ -61,11 +61,16 @@ const addReceiptInfo = receiptInfo => ret => {
|
|||
}
|
||||
|
||||
|
||||
const addMachineScreenOpts = addSmthInfo(
|
||||
const addMachineScreenOpts = smth => _.update(
|
||||
'screenOptions',
|
||||
_.flow(
|
||||
addSmthInfo(
|
||||
'rates',
|
||||
[
|
||||
'rates.active'
|
||||
'active'
|
||||
]
|
||||
)(smth.rates)
|
||||
)
|
||||
)
|
||||
|
||||
/* TODO: Simplify this. */
|
||||
|
|
@ -163,7 +168,7 @@ const staticConfig = ({ currentConfigVersion, deviceId, deviceName, pq, settings
|
|||
}),
|
||||
addOperatorInfo(operatorInfo),
|
||||
addReceiptInfo(receiptInfo),
|
||||
addMachineScreenOpts(machineScreenOpts)
|
||||
_.update('screenOptions', addMachineScreenOpts(machineScreenOpts))
|
||||
)(staticConf))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue