From 172cb9772b9fc0bbbc7cbe0de3e94c150d7377d3 Mon Sep 17 00:00:00 2001 From: Keith Lawrence Date: Thu, 4 Jul 2024 10:48:44 +0100 Subject: [PATCH] Ensure that all global banner variables are set to nil/false --- app/views/components/_global_bar.html.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/components/_global_bar.html.erb b/app/views/components/_global_bar.html.erb index 763419494..b87843fb0 100644 --- a/app/views/components/_global_bar.html.erb +++ b/app/views/components/_global_bar.html.erb @@ -4,6 +4,11 @@ title = "Bring photo ID to vote" title_href = "/how-to-vote/photo-id-youll-need" link_text = "Check what photo ID you'll need to vote in person in the General Election on 4 July." + else + show_global_bar = false + title = nil + title_href = nil + link_text = nil end link_href = false