diff --git a/app/views/me/_notice_navbar.html.erb b/app/views/me/_notice_navbar.html.erb index 761c76d..a4606ab 100644 --- a/app/views/me/_notice_navbar.html.erb +++ b/app/views/me/_notice_navbar.html.erb @@ -1,4 +1,4 @@ <%= link_to({ controller: 'notice/me/notifications' }, data: { turbo_frame: '_top' }, id: 'notice_show', class: 'navbar-item') do %> <%= current_member.unread_count %> -<% end if current_member %> +<% end if defined?(current_member) && current_member %>