Skip to content

Commit

Permalink
Merge pull request #268 from Nexters/bugfix/show-delete
Browse files Browse the repository at this point in the history
fix: 공연 삭제 조건 판단 시, 초청 티켓의 수량 판단 기준 수정
  • Loading branch information
Puterism authored Jan 22, 2025
2 parents d3a645a + 80d3668 commit 2b1112f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ShowSettingDialogContent = ({
const { data: invitationTicketList } = useInvitationTicketList(showId);

const hasSoldSalesTicketAtLeastOnce = salesTicketList?.some(({ soldAtLeastOnce }) => soldAtLeastOnce)
const hasSoldInvitationTicket = invitationTicketList?.some(({ totalForSale }) => totalForSale > 0)
const hasSoldInvitationTicket = invitationTicketList?.some(({ totalForSale, quantity }) => totalForSale > quantity)
const isShowDeletable = !hasSoldSalesTicketAtLeastOnce && !hasSoldInvitationTicket

const [firstHost, ...restHosts] = hosts ?? [];
Expand Down

0 comments on commit 2b1112f

Please sign in to comment.