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',
|
'screenOptions',
|
||||||
[
|
_.flow(
|
||||||
'rates.active'
|
addSmthInfo(
|
||||||
]
|
'rates',
|
||||||
|
[
|
||||||
|
'active'
|
||||||
|
]
|
||||||
|
)(smth.rates)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
/* TODO: Simplify this. */
|
/* TODO: Simplify this. */
|
||||||
|
|
@ -163,7 +168,7 @@ const staticConfig = ({ currentConfigVersion, deviceId, deviceName, pq, settings
|
||||||
}),
|
}),
|
||||||
addOperatorInfo(operatorInfo),
|
addOperatorInfo(operatorInfo),
|
||||||
addReceiptInfo(receiptInfo),
|
addReceiptInfo(receiptInfo),
|
||||||
addMachineScreenOpts(machineScreenOpts)
|
_.update('screenOptions', addMachineScreenOpts(machineScreenOpts))
|
||||||
)(staticConf))
|
)(staticConf))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue