From 8af245a3a30dac0186c233735268110cf8dbaef8 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Thu, 3 Sep 2020 10:03:42 -0700 Subject: [PATCH] Try to fix nav link --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 846cdf37..3728c695 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -190,7 +190,7 @@ module ApplicationHelper # TODO:Snap!Con: Replace this with a search for a conference logo. def nav_root_link_for(conference = nil) - path = !conference.nil? ? conference_path(conference) : root_path + path = conference&.id.present? ? conference_path(conference) : root_path link_to( image_tag('snapcon_logo.png'), path,