We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40ae2dc commit 449162aCopy full SHA for 449162a
src/pages/dashboard/ui/ticket/TIcketConfirmPage.tsx
@@ -31,8 +31,8 @@ const TicketConfirmPage = () => {
31
const [isModalOpen, setIsModalOpen] = useState(false);
32
const location = useLocation();
33
const orderIds: number[] = location.state?.orderIds || [];
34
- const eventId = location.state?.eventId;
35
- const ticketId = location.state?.ticketId;
+ const eventId = location.state?.eventId || 0;
+ const ticketId = location.state?.ticketId || 0;
36
37
const [ticket, setTicket] = useState<Ticket | null>(null);
38
useEffect(() => {
0 commit comments