diff --git a/frontend/src/lib/components/EditTransportation.svelte b/frontend/src/lib/components/EditTransportation.svelte index fa17dd5..8d28771 100644 --- a/frontend/src/lib/components/EditTransportation.svelte +++ b/frontend/src/lib/components/EditTransportation.svelte @@ -164,7 +164,7 @@

diff --git a/frontend/src/lib/components/NewCollection.svelte b/frontend/src/lib/components/NewCollection.svelte index a69f2ea..3838895 100644 --- a/frontend/src/lib/components/NewCollection.svelte +++ b/frontend/src/lib/components/NewCollection.svelte @@ -47,6 +47,12 @@ return; } + // make sure end date has a start date + if (newCollection.end_date && !newCollection.start_date) { + addToast('error', 'Please provide a start date'); + return; + } + const response = await fetch(form.action, { method: form.method, body: formData