Skip to content

Commit b78287e

Browse files
authored
Update watch.html
1 parent 60d52fe commit b78287e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

watch.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ <h1>${blueScore}</h1>
247247
// and sort by scheduled time in DESCENDING order (newest on top)
248248
const filteredMatches = allMatches
249249
.filter(m => m.comp_level !== 'p') // Filter out practice matches
250-
.sort((a, b) <= b.time - a.time); // Newest matches (highest time) first
250+
.sort((a, b) => b.time - a.time); // Newest matches (highest time) first
251251

252252
if (matchesContainer) {
253253
matchesContainer.innerHTML = ''; // Clear loading message
@@ -267,7 +267,7 @@ <h1>${blueScore}</h1>
267267
// Calculate next match time by finding the *earliest* match in the future (sort ASC)
268268
const nextMatch = allMatches
269269
.filter(m => m.comp_level !== 'p' && m.time > now)
270-
.sort((a, b) <= a.time - b.time)[0];
270+
.sort((a, b) => a.time - b.time)[0];
271271

272272
const nextMatchTime = nextMatch ? formatMatchTime(nextMatch.time) : 'N/A';
273273

0 commit comments

Comments
 (0)