Skip to content

Commit 449162a

Browse files
committed
refact: eventId, ticketId 기본값 설정
1 parent 40ae2dc commit 449162a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/dashboard/ui/ticket/TIcketConfirmPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const TicketConfirmPage = () => {
3131
const [isModalOpen, setIsModalOpen] = useState(false);
3232
const location = useLocation();
3333
const orderIds: number[] = location.state?.orderIds || [];
34-
const eventId = location.state?.eventId;
35-
const ticketId = location.state?.ticketId;
34+
const eventId = location.state?.eventId || 0;
35+
const ticketId = location.state?.ticketId || 0;
3636

3737
const [ticket, setTicket] = useState<Ticket | null>(null);
3838
useEffect(() => {

0 commit comments

Comments
 (0)