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 { useQuery, useMutation } from '@apollo/react-hooks'
|
||||||
import { makeStyles } from '@material-ui/core'
|
import { makeStyles } from '@material-ui/core'
|
||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
import * as R from 'ramda'
|
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import * as Yup from 'yup'
|
import * as Yup from 'yup'
|
||||||
|
|
||||||
|
|
@ -159,8 +158,6 @@ const CashCassettes = () => {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
const isAnyStripeFalse = () => !!R.find(R.propEq('stripe', false))(elements)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TitleSection title="Cash Cassettes" />
|
<TitleSection title="Cash Cassettes" />
|
||||||
|
|
@ -170,7 +167,6 @@ const CashCassettes = () => {
|
||||||
name="cashboxes"
|
name="cashboxes"
|
||||||
enableEdit
|
enableEdit
|
||||||
stripeWhen={isCashOutDisabled}
|
stripeWhen={isCashOutDisabled}
|
||||||
disableRowEdit={!isAnyStripeFalse}
|
|
||||||
elements={elements}
|
elements={elements}
|
||||||
data={data && data.machines}
|
data={data && data.machines}
|
||||||
save={onSave}
|
save={onSave}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue