Fix notifs page

This commit is contained in:
MartinBraquet
2025-09-16 21:54:29 +02:00
parent b2b519ba2e
commit 7b2b9855f9

View File

@@ -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
}