Skip to content

Commit

Permalink
fix: 티켓 관리 페이지에서 티켓 삭제 시 티켓 id의 타입 불일치 관련 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Puterism committed Feb 14, 2024
1 parent a382e80 commit d632db5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/admin/src/pages/ShowTicketPage/ShowTicketPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ const ShowTicketPage = () => {
toast.success('일반 티켓을 생성했습니다.');
}}
onDeleteTicket={async (ticket) => {
if (ticket.id === undefined) return;

const result = await confirm(
'삭제한 티켓은 다시 생성할 수 없어요. 삭제하시겠어요?',
{
Expand Down Expand Up @@ -165,6 +167,8 @@ const ShowTicketPage = () => {
toast.success('초청 티켓을 생성했습니다.');
}}
onDeleteTicket={async (ticket) => {
if (ticket.id === undefined) return;

const result = await confirm(
'삭제한 티켓은 다시 생성할 수 없어요. 삭제하시겠어요?',
{
Expand Down

0 comments on commit d632db5

Please sign in to comment.