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 (
|
return (
|
||||||
<>
|
<>
|
||||||
{!loading && !R.isEmpty(discountResponse.individualDiscounts) && (
|
{!loading && !R.isEmpty(discountResponse.individualDiscounts) && (
|
||||||
|
<>
|
||||||
<Box
|
<Box
|
||||||
marginBottom={4}
|
marginBottom={4}
|
||||||
marginTop={-7}
|
marginTop={-7}
|
||||||
|
|
@ -177,9 +178,6 @@ const IndividualDiscounts = () => {
|
||||||
Add new code
|
Add new code
|
||||||
</Link>
|
</Link>
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
|
||||||
{!loading && !R.isEmpty(discountResponse.individualDiscounts) && (
|
|
||||||
<>
|
|
||||||
<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