Skip to content

Commit

Permalink
fix: leader undefined 예외 처리 (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonddori authored Nov 17, 2024
1 parent e141676 commit def8a08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/containers/study/Participant/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ const Participant = ({ participantInfos }: ParticipantProps) => {
return 0;
});

if (!leader) {
return <div />;
}

// Feed 없을때 임시로 maxH="45vh"로 설정 원래는 maxH="30vh"
return (
<Card className="scroll" overflowY="auto" w="100%" h="100%" maxH="45vh" borderRadius="2xl" shadow="lg">
Expand Down

0 comments on commit def8a08

Please sign in to comment.