From 6acc5301347543d36ab7c68402d5fa25ae2e81cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=87=E1=85=A1=E1=86=A8=E1=84=80=E1=85=A5=E1=86=AB?= =?UTF-8?q?=E1=84=80=E1=85=B2?= Date: Wed, 18 Sep 2024 19:17:13 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B4=80=EB=A6=AC=EC=9E=90=EA=B0=80=20?= =?UTF-8?q?=EC=95=84=EB=8B=8C=20=EC=82=AC=EC=9A=A9=EC=9E=90=EC=97=90?= =?UTF-8?q?=EA=B2=8C=20=EB=84=A4=EB=B8=8C=EB=B0=94=EC=97=90=20=EB=B6=88?= =?UTF-8?q?=ED=95=84=EC=9A=94=ED=95=9C=20=EB=AC=B8=EC=9E=90=EA=B0=80=20?= =?UTF-8?q?=EB=B3=B4=EC=9D=B4=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #210 --- frontend/components/common/navbar/NavbarManagePassState.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/common/navbar/NavbarManagePassState.tsx b/frontend/components/common/navbar/NavbarManagePassState.tsx index 8029088..2404dae 100644 --- a/frontend/components/common/navbar/NavbarManagePassState.tsx +++ b/frontend/components/common/navbar/NavbarManagePassState.tsx @@ -17,11 +17,11 @@ export const NavbarManagePassState = ({ const generation = currentPath.split("/")[2]; const { data: userData, isLoading } = useQuery(["user"], getMyInfo); if (isLoading || !userData) { - return
Loading...
; + return null; } if (userData.role !== "ROLE_OPERATION") { - return
관리자만 접근이 가능합니다.
; + return null; } return (