mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 11:11:13 -05:00
Fix: Resolve internal server error
This commit is contained in:
@@ -101,7 +101,7 @@ export function RideListView({ rides, onRideClick }: RideListViewProps) {
|
||||
</div>
|
||||
|
||||
{/* Rating */}
|
||||
{ride.average_rating > 0 && (
|
||||
{(ride.average_rating != null && ride.average_rating > 0) && (
|
||||
<div className="flex items-center gap-1.5 ml-4 flex-shrink-0 bg-yellow-400/10 px-3 py-1.5 rounded-full group-hover:bg-yellow-400/20 transition-colors duration-300">
|
||||
<Star className="w-4 h-4 fill-yellow-400 text-yellow-400" />
|
||||
<span className="font-semibold text-foreground">{ride.average_rating.toFixed(1)}</span>
|
||||
|
||||
Reference in New Issue
Block a user