This commit is contained in:
@@ -215,8 +215,9 @@ export class MatchesService {
|
|||||||
|
|
||||||
if (leagueId) {
|
if (leagueId) {
|
||||||
where.leagueId = leagueId;
|
where.leagueId = leagueId;
|
||||||
} else if (status === "LIVE" && this.topLeagueIds.length > 0) {
|
} else if (this.topLeagueIds.length > 0) {
|
||||||
// Filter live matches by top leagues by default if no leagueId is provided
|
// Always filter by top leagues when no specific leagueId is requested
|
||||||
|
// This ensures match list is consistent with the active leagues sidebar
|
||||||
where.leagueId = { in: this.topLeagueIds };
|
where.leagueId = { in: this.topLeagueIds };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user