Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
fix(live-feed): show postseason header after round 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Oct 24, 2020
1 parent e4718bd commit b3ca51d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/live-feed/live-feed.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ export class LiveFeedPage implements OnInit, OnDestroy {
};

const day = this.streamData.games.sim.day;
const round = this.streamData.sim.playOffRound;
const phase = this.streamData.sim.phase;
switch (phase) {
case PHASES.PRESEASON:
Expand Down Expand Up @@ -357,12 +358,16 @@ export class LiveFeedPage implements OnInit, OnDestroy {
}
case PHASES.WILDCARD:
{
uiState.seasonHeader = `Wildcard Round, Day ${day}`;
break;
if (round === 1) {
uiState.seasonHeader = `Wildcard Round, Day ${day}`;
break;
}
// if round is > 1, fall through to postseason
}
case PHASES.POSTSEASON:
{
uiState.seasonHeader = `Postseason Round ${this.streamData.games.postseason.round.roundNumber}, Day ${day}`;
break;
}
default:
uiState.seasonHeader = `Season ${this.streamData.games.season.seasonNumber}, Day ${day}`;
Expand Down

0 comments on commit b3ca51d

Please sign in to comment.