Skip to content

Commit

Permalink
fix conditional rendering statements
Browse files Browse the repository at this point in the history
  • Loading branch information
nullsploit01 committed Feb 4, 2024
1 parent 18f4cf4 commit efc62bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/organisms/catalog-products/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ const CatalogProducts = () => {
})}
</Fragment>
)}
{!loading && !products.length && <NoProducts />}
{!loading && products.length && !searchResults.length && <NoProductsFound />}
{!loading && !!!products.length && <NoProducts />}
{!loading && !!products.length && !!!searchResults.length && <NoProductsFound />}
</Box>
)
}
Expand Down

0 comments on commit efc62bd

Please sign in to comment.