From 08980a55c7d6a52030b10ac63ce8037ae3178939 Mon Sep 17 00:00:00 2001
From: angusdenham Race Results
-
- Watch Replay
-
-
-
-
-
-
-
-
- {results.map((r) => {
- const gained =
- r.grid_position && r.position
- ? r.grid_position - r.position
- : null;
- return (
- Pos
- Driver
- Team
- Grid
- +/-
- Status
- Points
-
-
- );
- })}
-
-
- {r.position ?? "-"}
-
-
-
-
- {r.team}
-
-
- {r.grid_position ?? "-"}
-
-
- {gained === null ? (
- "-"
- ) : gained > 0 ? (
- +{gained}
- ) : gained < 0 ? (
- {gained}
- ) : (
- 0
- )}
-
-
- {r.status}
-
-
- {r.points}
-
-
- {API_URL}
+ {API_URL || (typeof window !== "undefined" ? window.location.origin : "(same origin)")}
Common causes:
diff --git a/frontend/src/components/SessionPicker.tsx b/frontend/src/components/SessionPicker.tsx index adb18de..0de25c5 100644 --- a/frontend/src/components/SessionPicker.tsx +++ b/frontend/src/components/SessionPicker.tsx @@ -240,7 +240,7 @@ export default function SessionPicker() { )} { e.stopPropagation(); setNavigating(true); @@ -265,7 +265,7 @@ export default function SessionPicker() { )} { e.stopPropagation(); setNavigating(true); @@ -392,7 +392,7 @@ export default function SessionPicker() { {liveSession && liveSession.year === year && (