Skip to content

Commit

Permalink
Fix "1 products"
Browse files Browse the repository at this point in the history
  • Loading branch information
armans-code committed Oct 18, 2024
1 parent dc9236e commit 2a4b295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default async function Page(props: {
<div className="container mx-auto p-4">
{finalCount > 0 ? (
<h1 className="mb-2 border-b-2 text-sm font-bold">
{finalCount} Products
{finalCount} {finalCount === 1 ? "Product" : "Products"}
</h1>
) : (
<p>No products for this subcategory</p>
Expand Down
2 changes: 1 addition & 1 deletion src/app/(category-sidebar)/products/[category]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default async function Page(props: {
<div className="container mx-auto p-4">
{finalCount && (
<h1 className="mb-2 border-b-2 text-sm font-bold">
{finalCount} Products
{finalCount} {finalCount === 1 ? "Product" : "Products"}
</h1>
)}
<div className="space-y-4">
Expand Down

0 comments on commit 2a4b295

Please sign in to comment.