diff --git a/src/core/features/reminders/services/database/reminders.ts b/src/core/features/reminders/services/database/reminders.ts index 3bb9d6abe..6d2713f36 100644 --- a/src/core/features/reminders/services/database/reminders.ts +++ b/src/core/features/reminders/services/database/reminders.ts @@ -122,7 +122,7 @@ const migrateFromCalendarRemindersV1 = async (db: SQLiteDB): Promise => { reminderTime = event.timestart - Math.floor(reminderTime / 60) * 60; } - if (typeof uniqueReminder[record.eventid] === undefined) { + if (uniqueReminder[record.eventid] === undefined) { uniqueReminder[record.eventid] = []; } else { if (uniqueReminder[record.eventid].includes(reminderTime)) { @@ -167,7 +167,7 @@ const migrateFromCalendarRemindersV2 = async (db: SQLiteDB): Promise => { const reminderTime = record.time || CoreRemindersService.DEFAULT_REMINDER_TIMEBEFORE; - if (typeof uniqueReminder[record.eventid] === undefined) { + if (uniqueReminder[record.eventid] === undefined) { uniqueReminder[record.eventid] = []; } else { if (uniqueReminder[record.eventid].includes(reminderTime)) {