mirror of
https://github.com/0xShay/ticketchain.git
synced 2026-01-12 05:33:23 +00:00
finished buyTicket and getEventTickets components
This commit is contained in:
@@ -38,9 +38,11 @@ const BuyTicket = () => {
|
||||
|
||||
// Handle buying a ticket for the event
|
||||
const handleBuyTicket = async () => {
|
||||
if (!eventId) {
|
||||
alert('Please enter a valid Event ID.');
|
||||
return;
|
||||
if (eventId !== null) {
|
||||
if (eventId < 0) {
|
||||
alert('Please enter a valid Event ID.');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user