mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 01:31:13 -05:00
Fix: Resolve type errors in homepage components
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user