Skip to content

Commit

Permalink
revert redzone test
Browse files Browse the repository at this point in the history
  • Loading branch information
fewieden committed Jan 23, 2022
1 parent 2e4cc49 commit 5df4482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espn.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function mapEventEntry(event = {}) {
const ongoing = !['pre', 'post'].includes(event.status?.type?.state);
const remainingTime = ongoing && event.status?.displayClock;

const rz = !event.competitions?.[0]?.situation?.isRedZone ? '1' : '0';
const rz = event.competitions?.[0]?.situation?.isRedZone ? '1' : '0';
const possessionTeamId = event.competitions?.[0]?.situation?.possession;
const possessionTeam = event.competitions?.[0]?.competitors?.find(c => c.id === possessionTeamId);
const p = getTeamName(possessionTeam);
Expand Down

0 comments on commit 5df4482

Please sign in to comment.