Code Cleanup™

This commit is contained in:
2024-02-11 11:16:23 +01:00
parent 4b27eb76fe
commit 9fd8ddb9bd
62 changed files with 663 additions and 519 deletions

View File

@ -32,11 +32,11 @@
let eventName = "";
let start = "";
$: startDate = dayjs(start)
$: startDate = dayjs(start);
let end = "";
$: endDate = dayjs(end)
$: endDate = dayjs(end);
$: canSubmit = eventName.length > 0 && startDate.isValid() && endDate.isValid() && startDate.isBefore(endDate)
$: canSubmit = eventName.length > 0 && startDate.isValid() && endDate.isValid() && startDate.isBefore(endDate);
async function createEvent() {
try {
@ -44,7 +44,7 @@
name: eventName,
start: startDate,
end: endDate
})
});
dispatch("create");
open = false;
} catch (e: any) {