diff --git a/web/src/pages/home.ts b/web/src/pages/home.ts index c7a0541..15a2a0b 100644 --- a/web/src/pages/home.ts +++ b/web/src/pages/home.ts @@ -22,7 +22,11 @@ async function findFeaturedReplay( ); if (completed.length === 0) return { match: null, enriched: false }; - const sorted = [...completed].sort( + // Prefer matches with a winner (no stalemates on the home page) + const withWinner = completed.filter((m) => !!m.winner_id); + const pool = withWinner.length > 0 ? withWinner : completed; + + const sorted = [...pool].sort( (a, b) => new Date(b.completed_at!).getTime() - new Date(a.completed_at!).getTime(),