fix: unnecessary condition check
This commit is contained in:
parent
5e7ea24d7c
commit
71cf10f73c
1 changed files with 0 additions and 4 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import { useQuery, useMutation } from '@apollo/react-hooks'
|
||||
import { makeStyles } from '@material-ui/core'
|
||||
import gql from 'graphql-tag'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
|
|
@ -159,8 +158,6 @@ const CashCassettes = () => {
|
|||
}
|
||||
]
|
||||
|
||||
const isAnyStripeFalse = () => !!R.find(R.propEq('stripe', false))(elements)
|
||||
|
||||
return (
|
||||
<>
|
||||
<TitleSection title="Cash Cassettes" />
|
||||
|
|
@ -170,7 +167,6 @@ const CashCassettes = () => {
|
|||
name="cashboxes"
|
||||
enableEdit
|
||||
stripeWhen={isCashOutDisabled}
|
||||
disableRowEdit={!isAnyStripeFalse}
|
||||
elements={elements}
|
||||
data={data && data.machines}
|
||||
save={onSave}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue