From 23ce519ed15b9b56d38bc20dcd3076d056547cb4 Mon Sep 17 00:00:00 2001 From: yeonddori <126975394+yeonddori@users.noreply.github.com> Date: Fri, 27 Sep 2024 21:51:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=98=84=EC=9E=AC=20=EB=B3=B4=EA=B3=A0?= =?UTF-8?q?=20=EC=9E=88=EC=A7=80=20=EC=95=8A=EC=9D=80=20=ED=8C=80=20?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=EC=9D=B4=20=EC=A3=BC=ED=99=A9=EC=83=89?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=ED=91=9C=EC=8B=9C=EB=90=98=EB=8A=94=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95=20(#311)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sidebar/Category/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Sidebar/Category/index.tsx b/src/components/Sidebar/Category/index.tsx index f752c633..e5999979 100644 --- a/src/components/Sidebar/Category/index.tsx +++ b/src/components/Sidebar/Category/index.tsx @@ -15,7 +15,7 @@ const Category = ({ id, name, subCategory }: CategoryProps) => { text={name} isSelected={currentPath === teamPath} isTeam - isTeamMatch={currentPath.includes(teamPath)} + isTeamMatch={currentPath.startsWith(`${teamPath}/`)} /> {subCategory.map((study) => { const studyPath = `${teamPath}/study/${study.id}`;