fix: remove redundant conditional
This commit is contained in:
parent
dfa82e54ae
commit
287d2d006b
1 changed files with 10 additions and 12 deletions
|
|
@ -167,6 +167,7 @@ const IndividualDiscounts = () => {
|
|||
return (
|
||||
<>
|
||||
{!loading && !R.isEmpty(discountResponse.individualDiscounts) && (
|
||||
<>
|
||||
<Box
|
||||
marginBottom={4}
|
||||
marginTop={-7}
|
||||
|
|
@ -177,9 +178,6 @@ const IndividualDiscounts = () => {
|
|||
Add new code
|
||||
</Link>
|
||||
</Box>
|
||||
)}
|
||||
{!loading && !R.isEmpty(discountResponse.individualDiscounts) && (
|
||||
<>
|
||||
<DataTable
|
||||
elements={elements}
|
||||
data={R.path(['individualDiscounts'])(discountResponse)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue