From 4159250672bfe19814dd8d1ad769db2b530e67e3 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Mon, 27 Jul 2020 19:28:06 -0700 Subject: [PATCH] Small bug fix when a conference is not defined --- 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 96c2f8b1..73a1f476 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) - path = conference.present? ? conference_path(conference) : root_path + path = conference ? conference_path(conference) : root_path link_to( image_tag('snapcon_logo.png'), path,