diff --git a/app/host/page.tsx b/app/host/page.tsx index 1b63f2b..a8ad4f3 100644 --- a/app/host/page.tsx +++ b/app/host/page.tsx @@ -95,7 +95,7 @@ const Page = () => { >
= ({ }) => { const { toast } = useToast(); const [numTickets, setNumTickets] = useState(1); + const eventDate = new Date(Number(eventDetails.date) * 1000).toLocaleString(); const handleBuyNow = () => { buyHandler(eventDetails.EventID, numTickets, toast); @@ -74,7 +75,7 @@ const EventDescription: React.FC = ({

Date:
- {eventDetails.date} + {eventDate}


@@ -82,6 +83,9 @@ const EventDescription: React.FC = ({
{eventDetails.host}

+

Location:
{eventDetails.location}


+

Date:
{eventDate}


+

Host:
{eventDetails.host}

{eventDetails.ticketsSold / eventDetails.capacity >= 0.9 && (
Limited Tickets Remaining! diff --git a/components/custom/EventForm.tsx b/components/custom/EventForm.tsx index 9875f3d..d3b4444 100644 --- a/components/custom/EventForm.tsx +++ b/components/custom/EventForm.tsx @@ -102,7 +102,7 @@ const EventForm = ({ onSubmit }: EventFormProps) => {
- {errors.name &&

{errors.name.message}

} + {errors.name &&

{errors.name.message}

}
{/* Description Field */} @@ -110,7 +110,7 @@ const EventForm = ({ onSubmit }: EventFormProps) => {