From d61beaed5a974e0205fbd1fecd6e4e325853ebed Mon Sep 17 00:00:00 2001 From: Jaap Eldering Date: Sat, 28 Oct 2023 16:00:27 +0200 Subject: [PATCH] Only show mismatch if there were expected results to begin with Fixes 74535eb47e06741a2e44a55eb3acba66e8c7333a. --- webapp/templates/jury/submission.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/templates/jury/submission.html.twig b/webapp/templates/jury/submission.html.twig index 2cbd205b7c..7aa84f7e91 100644 --- a/webapp/templates/jury/submission.html.twig +++ b/webapp/templates/jury/submission.html.twig @@ -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 %}
Actual result {{ selectedJudging.result | printValidJuryResult }} does NOT match expected result(s): {% for expectedResult in submission.expectedResults %}