Skip to content

Commit

Permalink
Merge pull request #124 from PoolC/pre-release
Browse files Browse the repository at this point in the history
activity 파라미터명 변경
  • Loading branch information
mingd1023 authored Sep 17, 2021
2 parents 4cc36f9 + c787d2e commit 4a8120b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/activity/ActivityDetail/ActivityDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,21 @@ const ActivityDetail = ({
<ButtonContainer>
{activity.available &&
memberId !== activity.host.loginID &&
!activity.members.includes(memberId) &&
activity.members.length < activity.capacity && (
!activity.memberLoginIds.includes(memberId) &&
activity.memberLoginIds.length < activity.capacity && (
<StyledButton onClick={handleRegisterModalOpen}>
신청
</StyledButton>
)}
{activity.available &&
memberId !== activity.host.loginID &&
!activity.members.includes(memberId) &&
activity.members.length >= activity.capacity && (
!activity.memberLoginIds.includes(memberId) &&
activity.memberLoginIds.length >= activity.capacity && (
<FullText>[정원 마감]</FullText>
)}
{activity.available &&
memberId !== activity.host.loginID &&
activity.members.includes(memberId) && (
activity.memberLoginIds.includes(memberId) && (
<StyledButton onClick={handleRegisterModalOpen}>
신청 취소
</StyledButton>
Expand Down

0 comments on commit 4a8120b

Please sign in to comment.