From 1f5c95518ee1910a97f75746de4acad6c0c265ac Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Sat, 11 Oct 2025 17:52:27 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=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 8cf5ec32..b54613b8 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 (