From 8db64614f9b79bc807c16621051a3d658fb013db Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Fri, 6 Dec 2024 16:47:55 +0800 Subject: [PATCH] ntoce lgoc --- app/views/me/_notice_navbar.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %>