From 7b2b9855f923087698caf1b75de493f24d352be4 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Tue, 16 Sep 2025 21:54:29 +0200 Subject: [PATCH] Fix notifs page --- web/pages/notifications.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pages/notifications.tsx b/web/pages/notifications.tsx index 6e44c581..c0b7f064 100644 --- a/web/pages/notifications.tsx +++ b/web/pages/notifications.tsx @@ -221,8 +221,8 @@ const NotificationOption = (props: { const getSelectedValues = (destinations: string[]) => { const values: number[] = [] - if (destinations.includes('email')) values.push(0) - if (destinations.includes('browser')) values.push(1) + if ((destinations ?? []).includes('email')) values.push(0) + if ((destinations ?? []).includes('browser')) values.push(1) return values }