From d302c7e619e1c41a58f6c6079114eded7be22370 Mon Sep 17 00:00:00 2001 From: e-zz <37920155+e-zz@users.noreply.github.com> Date: Sat, 16 Mar 2024 10:10:39 +0100 Subject: [PATCH] Update ics.ts --- src/util/ics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/ics.ts b/src/util/ics.ts index 22f3980..c0c3494 100644 --- a/src/util/ics.ts +++ b/src/util/ics.ts @@ -27,7 +27,7 @@ export const transformAgendaTaskToICSEvent = (task: AgendaTaskWithStart, graphNa } let type: 'day-event' | 'multi-days-event' | 'time-event' = 'day-event' - if (allDay === false) { + if (allDay === false && estimatedTime !== undefined) { type = 'time-event' } else if (end) { type = 'multi-days-event'