Skip to content

Commit

Permalink
fix: 참여하기 버튼 클릭 시 private 방에서만 PR 작성에 대한 추가 문구가 보이도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Nov 21, 2024
1 parent 1bd2901 commit d18b157
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ const RoomCardModalButton = ({ roomInfo }: RoomCardModalButtonProps) => {
</S.FormWrapper>
</S.FormContainer>

<Button variant="primary" size="small" onClick={handleNoticeModal}>
<Button
variant="primary"
size="small"
onClick={roomInfo.isPublic ? handleParticipateRoomClick : handleNoticeModal}
>
참여하기
</Button>
</S.ButtonContainer>
Expand Down

0 comments on commit d18b157

Please sign in to comment.