Single liverun type

This commit is contained in:
2026-02-07 00:55:23 +01:00
parent 9cf69fde7d
commit 75042007b7
6 changed files with 54 additions and 68 deletions
+2 -6
View File
@@ -24,11 +24,7 @@ export default function LiveRuns() {
const [liveRuns, liveRunsLoaded, liveRunsError] = useAction(getLiveRuns);
// Sort top runners (status === 'pb') to the top
const sortedRuns = [...(liveRuns || [])].sort((a, b) => {
if (a.status === "pb" && b.status !== "pb") return -1;
if (a.status !== "pb" && b.status === "pb") return 1;
return 0;
});
const sortedRuns = [...(liveRuns || [])];
return (
<div className="min-h-screen pt-24 pb-16">
@@ -82,7 +78,7 @@ export default function LiveRuns() {
<TableBody>
{sortedRuns.map((run, index) => (
<LiveRunRow key={run.id} {...run} index={index} />
<LiveRunRow key={run.id} index={index} run={run} />
))}
</TableBody>
</Table>