From b1dcb6502d3f2be823093143e28a1bcaabc6babd Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 13 Jun 2024 14:14:57 -0500 Subject: [PATCH] Fallback --- src/state/shell/reminders.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/state/shell/reminders.ts b/src/state/shell/reminders.ts index f509d962e8..c5ded4db3d 100644 --- a/src/state/shell/reminders.ts +++ b/src/state/shell/reminders.ts @@ -13,8 +13,8 @@ export function shouldRequestEmailConfirmation(account: SessionAccount) { if (isOnboardingActive()) return false const stored = persisted.get('reminders').lastEmailConfirm - const today = toSimpleDateString(new Date()) const snoozedAt = stored ? toSimpleDateString(new Date(stored)) : undefined + const today = toSimpleDateString(new Date()) logger.debug('Checking email confirmation reminder', { today, @@ -38,6 +38,8 @@ export function shouldRequestEmailConfirmation(account: SessionAccount) { return true } + // should never happen + snooze() return true }