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() %}