Skip to content

Commit

Permalink
Fix crash in CF Feedback problems
Browse files Browse the repository at this point in the history
  • Loading branch information
mraron committed Sep 7, 2023
1 parent dedba7e commit 6782c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/web/templates/_submission.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{Tr "Compilation error"}}
{{else}}
{{$testset := (index $status.Feedback 0)}}
<span class="text-info">{{$tc := $testset.FirstNonAC}}{{ $verdict := (verdict (($testset.IndexTestcase $tc).VerdictName)) }}{{Tr "%s on test %d" (Tr $verdict) $tc}}</span>
<span class="text-info">{{$tc := $testset.FirstNonAC}}{{ $verdict := (verdict (($testset.IndexTestcase $tc).VerdictName)) }}{{Tr "%s on test %d" (Tr $verdict.String) $tc}}</span>
{{end}}
{{end}}
{{else}}
Expand Down

0 comments on commit 6782c69

Please sign in to comment.