Skip to content

Commit

Permalink
refactor: 불필요한 삼항연산자 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
hamo-o committed Nov 10, 2024
1 parent c5b0770 commit 6dc8c9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/admin/app/students/_components/StudentsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const StudentsHeader = ({
수강생 관리 <ItemSeparator height={6} width={6} />
<StudyDropDown studyList={studyList} />
</Text>
{studyId && studentLength ? (
{studyId && !!studentLength && (
<styled.a download="study.xls" href={url}>
<Image
alt="다운로드"
Expand All @@ -48,7 +48,7 @@ const StudentsHeader = ({
width={24}
/>
</styled.a>
) : null}
)}
</Flex>
);
};
Expand Down

0 comments on commit 6dc8c9b

Please sign in to comment.