From 1e47ac0cd72fe23914b59e845b3abf25cd112e13 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Sat, 11 Oct 2025 17:50:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Navbars/HomeNavbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Navbars/HomeNavbar.js b/src/components/Navbars/HomeNavbar.js index b54613b8..8cf5ec32 100644 --- a/src/components/Navbars/HomeNavbar.js +++ b/src/components/Navbars/HomeNavbar.js @@ -45,7 +45,7 @@ import { useAuth } from '../../contexts/AuthContext'; const NavItems = ({ isAuthenticated, user }) => { const navigate = useNavigate(); - if (isAuthenticated && user) { + if (!isAuthenticated && !user) { return (