From 73e03b7135b6b1704ba0ea620077400c0c643e20 Mon Sep 17 00:00:00 2001 From: Patrick Fairbank Date: Sat, 30 Sep 2023 12:02:31 -0700 Subject: [PATCH] Fix bug with announcer display fouls. --- templates/announcer_display_score_posted.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/announcer_display_score_posted.html b/templates/announcer_display_score_posted.html index 49e0fc5f..a73ae554 100644 --- a/templates/announcer_display_score_posted.html +++ b/templates/announcer_display_score_posted.html @@ -63,16 +63,17 @@

Fouls

{{range $foul := .fouls}}
- {{if (index $.rulesViolated $foul.RuleId).IsRankingPoint}} + {{if and (index $.rulesViolated $foul.RuleId) (index $.rulesViolated $foul.RuleId).IsRankingPoint}} Free RP {{else}} - {{if (index $.rulesViolated $foul.RuleId).IsTechnical}}Tech {{end}} + {{if $foul.IsTechnical}}Tech {{end}} Foul {{end}}
Team {{$foul.TeamId}}
-
- {{(index $.rulesViolated $foul.RuleId).RuleNumber}} +
+ {{if index $.rulesViolated $foul.RuleId}}{{(index $.rulesViolated $foul.RuleId).RuleNumber}}{{end}}
{{end}}