Skip to content

Commit

Permalink
fix: currentRound returns round with only Locked and Completed
Browse files Browse the repository at this point in the history
…matches

Closes Drarig29#180
  • Loading branch information
Tandashi committed Jul 15, 2023
1 parent af52c3c commit 7ebb71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class Get extends BaseGetter {
const matchesByRound = helpers.splitBy(matches, 'round_id');

for (const roundMatches of matchesByRound) {
if (roundMatches.every(match => match.status >= Status.Completed))
if (roundMatches.every((match) => !helpers.isMatchOngoing(match)))
continue;

const round = await this.storage.select('round', roundMatches[0].round_id);
Expand Down

0 comments on commit 7ebb71b

Please sign in to comment.