Code Cleanup™
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user