Fix inversions stat card logic

This commit is contained in:
gpt-engineer-app[bot]
2025-10-10 12:25:03 +00:00
parent 0772a14e93
commit 26e098c960

View File

@@ -344,7 +344,8 @@ export default function RideDetail() {
</Card>
)}
{ride.inversions !== null && ride.inversions !== undefined && (
{ride.inversions !== null && ride.inversions !== undefined &&
(ride.category === 'roller_coaster' || ride.category?.toLowerCase().includes('coaster')) && (
<Card>
<CardContent className="p-4 text-center">
<RotateCcw className="w-6 h-6 text-accent mx-auto mb-2" />