Skip to content

Commit

Permalink
fix: 현재 보고 있지 않은 팀 이름이 주황색으로 표시되는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonddori committed Sep 22, 2024
1 parent 4b05cc9 commit 02c845e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sidebar/Category/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 02c845e

Please sign in to comment.