diff --git a/app/views/conferences/show.html.erb b/app/views/conferences/show.html.erb index f263a33a8c9c068f3e378ed4e3622753e18f3b09..c72964cb858dd8153b77148dc756b2275ce9236d 100644 --- a/app/views/conferences/show.html.erb +++ b/app/views/conferences/show.html.erb @@ -10,7 +10,7 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone) <%= turbo_stream_from @conference %> <div> <div> - <a href="#now" onclick="document.querySelector('#now').scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' }); return false" class="underline text-blue-500">Jump to current time</a> + <a href="#now" onclick="document.querySelector('#now')?.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' }); return false" class="underline text-blue-500">Jump to current time</a> </div> <h1 class="text-2xl font-bold my-2"><%= @conference.name %></h1> <p class="text-xs mb-6">