Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: automatically create the first backup

thecodrrebfe0ab1a4e0
diff --git a/apps/web/src/common/reminders.js b/apps/web/src/common/reminders.js
index 93996dd2b..4502659c1 100644
--- a/apps/web/src/common/reminders.js
+++ b/apps/web/src/common/reminders.js
@@ -15,6 +15,8 @@ export async function shouldAddBackupReminder() {
if (!backupReminderOffset) return false;
const lastBackupTime = await db.backup.lastBackupTime();
+ if (!lastBackupTime) return true;
+
const offsetToDays =
backupReminderOffset === 1 ? 1 : backupReminderOffset === 2 ? 7 : 30;