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 }