Skip to content

Commit

Permalink
remove extra empty div
Browse files Browse the repository at this point in the history
  • Loading branch information
Park Se Hyun committed Jan 14, 2025
1 parent 095b4e4 commit a9088ca
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export const CollectionResults = ({
</div>
</div>
{/* NOTE: DO NOT add h-full to this div as it will break old browsers */}
<div className={collectionResults()}>
{paginatedItems.length > 0 &&
paginatedItems.map((item) =>
{paginatedItems.length !== 0 ? (
<div className={collectionResults()}>
{paginatedItems.map((item) =>
variant === "collection" ? (
<CollectionCard
key={`${item.title}-${item.category}`}
Expand All @@ -102,8 +102,8 @@ export const CollectionResults = ({
/>
),
)}
</div>
{paginatedItems.length === 0 && (
</div>
) : (
<div className="flex flex-col gap-1 py-32 text-center text-content">
<p className="prose-body-base">
We couldn’t find any articles. Try different search terms or
Expand Down

0 comments on commit a9088ca

Please sign in to comment.