mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-29 01:47:05 -05:00
Fix: Resolve type errors in homepage components
This commit is contained in:
@@ -112,11 +112,11 @@ export function DesignerCard({ company }: DesignerCardProps) {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{company.average_rating > 0 && (
|
||||
{company.average_rating && company.average_rating > 0 && (
|
||||
<div className="inline-flex items-center gap-1">
|
||||
<Star className="w-4 h-4 fill-yellow-500 text-yellow-500" />
|
||||
<span className="font-semibold">{company.average_rating.toFixed(1)}</span>
|
||||
{company.review_count > 0 && (
|
||||
{company.review_count && company.review_count > 0 && (
|
||||
<span className="text-muted-foreground">({company.review_count})</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user