Skip to content

Commit

Permalink
Update ics.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
e-zz committed Mar 16, 2024
1 parent 904ec34 commit d302c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/ics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d302c7e

Please sign in to comment.