Skip to content

Commit

Permalink
fix: 현재 보고 있지 않은 팀 이름이 주황색으로 표시되는 버그 수정 (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonddori authored Sep 27, 2024
1 parent 3f8c00c commit 23ce519
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 23ce519

Please sign in to comment.