Small bug fix when a conference is not defined

This commit is contained in:
Michael Ball 2020-07-27 19:28:06 -07:00
parent 48a8aa37d1
commit 4159250672

View file

@ -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,