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

@@ -90,7 +90,9 @@ export function DesignerCard({ company }: DesignerCardProps) {
<div className="flex items-center gap-2">
<Star className="w-3 h-3 text-yellow-500 fill-yellow-500 flex-shrink-0" />
<span className="font-medium">{company.average_rating.toFixed(1)}</span>
<span className="text-muted-foreground">({company.review_count} reviews)</span>
{company.review_count > 0 && (
<span className="text-muted-foreground">({company.review_count} reviews)</span>
)}
</div>
)}
</div>