Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ckagiri committed Dec 2, 2024
1 parent fcc430a commit 3f6440e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class TodayAndMorrowScheduler extends BaseScheduler {
period = PERIOD.TODAY_AND_MORROW
} else if (this.liveMatchHasFinished) {
period = PERIOD.TODAY;
} else if (this.liveMatchId != undefined) {
} else if (this.liveMatchId) {
period = PERIOD.LIVE;
}

Expand Down Expand Up @@ -102,7 +102,7 @@ export class TodayAndMorrowScheduler extends BaseScheduler {
const diff = nextPoll.diff(moment(), 'minutes');
nextPoll = diff <= 0 ? moment().add(1, 'minutes') : nextPoll;

if (liveMatchId || this.liveMatchId || this.liveMatchHasFinished) {
if (this.liveMatchId || this.liveMatchHasFinished) {
nextPoll = moment().add(1, 'minutes');
}
this.nextPoll = nextPoll;
Expand Down

0 comments on commit 3f6440e

Please sign in to comment.