Skip to content

Commit

Permalink
CRIT is still an active game
Browse files Browse the repository at this point in the history
Don't show "Final" during crit, just show the score as normal.
  • Loading branch information
parnic committed Nov 17, 2023
1 parent f430b45 commit e510759
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions templates/MMM-NHL.njk
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,10 @@
{% elif games[index].status.abstract === "FUT" %}
{{ games[index] | formatStartDate }}
{% elif (games[index].status.abstract === "LIVE" or games[index].status.detailed === "CRIT") and games[index].live.period %}
{% if games[index].live.timeRemaining or games[index].status.detailed === "CRIT" %}
{% if games[index].live.timeRemaining %}
<div class="live">{{ games[index].live.period | translate }}</div>
<div class="live">
{% if games[index].status.detailed === "CRIT" %}
{{ "FINAL" | translate }}
{% else %}
{{ "TIME_LEFT" | translate({TIME: games[index].live.timeRemaining}) }}
{% endif %}
{{ "TIME_LEFT" | translate({TIME: games[index].live.timeRemaining}) }}
</div>
{% else %}
{{ games[index].live.period | translate }}
Expand Down

0 comments on commit e510759

Please sign in to comment.