Fix: Resolve type errors in homepage components

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 02:04:14 +00:00
parent c4b1339f0d
commit 007494d21c
4 changed files with 67 additions and 67 deletions

View File

@@ -71,7 +71,7 @@ export function FeaturedParks() {
{/* Rating Badge */}
<Badge className="absolute top-3 right-3 bg-background/90 text-foreground border-0">
<Star className="w-3 h-3 mr-1 fill-yellow-400 text-yellow-400" />
{park.average_rating.toFixed(1)}
{park.average_rating ? park.average_rating.toFixed(1) : 'N/A'}
</Badge>
</div>