Skip to content

Commit

Permalink
Fix my last fix: check for empty expected results earlier
Browse files Browse the repository at this point in the history
Locally approved by Mart.
  • Loading branch information
eldering committed Oct 28, 2023
1 parent d61beae commit 963b942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/templates/jury/submission.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
</div>
{% endif %}

{% if selectedJudging is not null and selectedJudging.result is not empty %}
{% if submission.expectedResults and selectedJudging.result|upper not in submission.expectedResults %}
{% if selectedJudging is not null and selectedJudging.result is not empty and submission.expectedResults %}
{% if 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 963b942

Please sign in to comment.