fix: cashout row stripped when editing
This commit is contained in:
parent
a5ce5bae56
commit
4cff0a6953
1 changed files with 3 additions and 1 deletions
|
|
@ -72,6 +72,8 @@ const CashOut = ({ name: SCREEN_KEY }) => {
|
|||
save(toNamespace(id, { active: !namespaced?.active }))
|
||||
}
|
||||
|
||||
const wasNeverEnabled = it => R.compose(R.length, R.keys)(it) === 1
|
||||
|
||||
return (
|
||||
<>
|
||||
<TitleSection title="Cash-out">
|
||||
|
|
@ -102,7 +104,7 @@ const CashOut = ({ name: SCREEN_KEY }) => {
|
|||
<EditableTable
|
||||
namespaces={R.map(R.path(['deviceId']))(machines)}
|
||||
data={config}
|
||||
stripeWhen={it => !DenominationsSchema.isValidSync(it)}
|
||||
stripeWhen={wasNeverEnabled}
|
||||
enableEdit
|
||||
editWidth={134}
|
||||
enableToggle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue