diff options
-rw-r--r-- | web/pw-server/src/routes/matches/index.svelte | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/pw-server/src/routes/matches/index.svelte b/web/pw-server/src/routes/matches/index.svelte index 9679132..e14d380 100644 --- a/web/pw-server/src/routes/matches/index.svelte +++ b/web/pw-server/src/routes/matches/index.svelte @@ -85,7 +85,8 @@ } function olderMatchesLink(matches: object[]): string { - if (matches.length == 0 || (query["before"] && !hasNext)) { + // sort order is time DESC unless "before" is set + if (matches.length == 0 || (!query["after"] && !hasNext)) { return null; } const lastTimestamp = matches[matches.length - 1]["timestamp"]; |