From 081fc9200e2f971469ff2cd988b30cb088ac4b89 Mon Sep 17 00:00:00 2001 From: Ragnar Groot Koerkamp Date: Sat, 23 Sep 2023 23:11:01 +0200 Subject: [PATCH] disable showing banner image for merged scoreboard --- webapp/templates/public/scoreboard.html.twig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/templates/public/scoreboard.html.twig b/webapp/templates/public/scoreboard.html.twig index 953d0d83fc..9b87838085 100644 --- a/webapp/templates/public/scoreboard.html.twig +++ b/webapp/templates/public/scoreboard.html.twig @@ -7,7 +7,9 @@ {% if showExternalId(contest) %} {% set contestId = contest.externalid %} {% endif %} - {% set bannerImage = contestId | assetPath('contest') %} + {% if contestId %} + {% set bannerImage = contestId | assetPath('contest') %} + {% endif %} {% endif %} {% if bannerImage is not defined or not bannerImage %} {% set bannerImage = globalBannerAssetPath() %}