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

@@ -136,7 +136,9 @@ export function RideCard({ ride, showParkName = true, className }: RideCardProps
<div className="flex items-center gap-1">
<Star className="w-3 h-3 fill-yellow-400 text-yellow-400" />
<span className="text-sm font-medium">{ride.average_rating.toFixed(1)}</span>
<span className="text-xs text-muted-foreground">({ride.review_count})</span>
{ride.review_count > 0 && (
<span className="text-xs text-muted-foreground">({ride.review_count})</span>
)}
</div>
)}
</div>