From 17ca9e1ae464bd33b21072b49b7d5b24a78b8946 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Thu, 10 Sep 2020 22:39:05 +0200 Subject: [PATCH] make org, purpose, destination optional --- components/wizard/reason.tsx | 2 -- db/booking.ts | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/wizard/reason.tsx b/components/wizard/reason.tsx index 03689a2..51d12d6 100644 --- a/components/wizard/reason.tsx +++ b/components/wizard/reason.tsx @@ -14,14 +14,12 @@ export default function Contact() { name="purpose" value={purpose} onChange={onChangeEvent} - required /> diff --git a/db/booking.ts b/db/booking.ts index c485162..954e5c3 100644 --- a/db/booking.ts +++ b/db/booking.ts @@ -12,9 +12,9 @@ export interface BookingDocument startDate: Date endDate: Date status: BOOKING_STATUS - purpose: string - org: string - destination: string + purpose?: string + org?: string + destination?: string days?: string[] }