Commit 0f8c4701 authored by nanahira's avatar nanahira

exclude pending matches

parent f76adce4
Pipeline #8123 failed with stages
in 3 minutes and 19 seconds
......@@ -193,8 +193,8 @@ export class TournamentWrapper {
}
getCurrentMatchFromId(id: number, fetchLastCompleted = false) {
const allRelatedMatches = this.tournament.matches.filter((m) =>
m.hasPlayer(id),
const allRelatedMatches = this.tournament.matches.filter(
(m) => m.hasPlayer(id) && m.match.state !== 'pending',
);
const currentMatch = allRelatedMatches.find(
(m) => m.match.state !== 'complete',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment