From 8e6b52f2603be39970045b26e1844f4e16464f26 Mon Sep 17 00:00:00 2001 From: SASAGAWA Kiyoshi Date: Sat, 10 Feb 2024 19:52:40 +0000 Subject: [PATCH] fix: lint --- src/widgets/calendar/integrations/ical.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/calendar/integrations/ical.jsx b/src/widgets/calendar/integrations/ical.jsx index 74093a14..079ee9ff 100644 --- a/src/widgets/calendar/integrations/ical.jsx +++ b/src/widgets/calendar/integrations/ical.jsx @@ -53,8 +53,8 @@ export default function Integration({ config, params, setEvents, hideErrors, tim const eventToAdd = (date, i, type) => { // When the 'dtend' is not defined (one-day all-day event), 'dtend' should be the same as 'dtstart'. - const {dtstart} = event; - const dtend = ('dtend' in event) ? event.dtend : dtstart; + const { dtstart } = event; + const dtend = 'dtend' in event ? event.dtend : dtstart; const duration = dtend.value - dtstart.value; const days = duration === 0 ? 1 : duration / (1000 * 60 * 60 * 24);