fix: remove redundant conditional
This commit is contained in:
parent
dfa82e54ae
commit
287d2d006b
1 changed files with 10 additions and 12 deletions
|
|
@ -166,20 +166,18 @@ const IndividualDiscounts = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{!loading && !R.isEmpty(discountResponse.individualDiscounts) && (
|
|
||||||
<Box
|
|
||||||
marginBottom={4}
|
|
||||||
marginTop={-7}
|
|
||||||
className={classes.tableWidth}
|
|
||||||
display="flex"
|
|
||||||
justifyContent="flex-end">
|
|
||||||
<Link color="primary" onClick={toggleModal}>
|
|
||||||
Add new code
|
|
||||||
</Link>
|
|
||||||
</Box>
|
|
||||||
)}
|
|
||||||
{!loading && !R.isEmpty(discountResponse.individualDiscounts) && (
|
{!loading && !R.isEmpty(discountResponse.individualDiscounts) && (
|
||||||
<>
|
<>
|
||||||
|
<Box
|
||||||
|
marginBottom={4}
|
||||||
|
marginTop={-7}
|
||||||
|
className={classes.tableWidth}
|
||||||
|
display="flex"
|
||||||
|
justifyContent="flex-end">
|
||||||
|
<Link color="primary" onClick={toggleModal}>
|
||||||
|
Add new code
|
||||||
|
</Link>
|
||||||
|
</Box>
|
||||||
<DataTable
|
<DataTable
|
||||||
elements={elements}
|
elements={elements}
|
||||||
data={R.path(['individualDiscounts'])(discountResponse)}
|
data={R.path(['individualDiscounts'])(discountResponse)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue