Refactor: Hide zero counts in search

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 14:58:27 +00:00
parent 7581ba053b
commit 71f0b5e33f
4 changed files with 16 additions and 6 deletions

View File

@@ -104,7 +104,9 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
<div className="flex items-center gap-1">
<Star className="w-4 h-4 fill-yellow-400 text-yellow-400" />
<span className="text-sm font-medium">{company.average_rating.toFixed(1)}</span>
<span className="text-xs text-muted-foreground">({company.review_count} reviews)</span>
{company.review_count > 0 && (
<span className="text-xs text-muted-foreground">({company.review_count} reviews)</span>
)}
</div>
)}