Skip to content

Commit

Permalink
Only show mismatch if there were expected results to begin with
Browse files Browse the repository at this point in the history
Fixes 74535eb.
  • Loading branch information
eldering committed Oct 28, 2023
1 parent 0e3f272 commit d61beae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/templates/jury/submission.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{% endif %}

{% if selectedJudging is not null and selectedJudging.result is not empty %}
{% if selectedJudging.result|upper not in submission.expectedResults %}
{% if submission.expectedResults and selectedJudging.result|upper not in submission.expectedResults %}
<div class="alert alert-danger">
Actual result {{ selectedJudging.result | printValidJuryResult }} does NOT match expected result(s):
{% for expectedResult in submission.expectedResults %}
Expand Down

0 comments on commit d61beae

Please sign in to comment.