diff --git a/src/libs/notifications/notifications.ts b/src/libs/notifications/notifications.ts index bc06443fb..38ddf66d1 100644 --- a/src/libs/notifications/notifications.ts +++ b/src/libs/notifications/notifications.ts @@ -108,7 +108,10 @@ export const handleInitialLocalNotification = async ( const notificationId = notification?.notification.id - if (notificationId === lastLocalNotificationId) { + if ( + notificationId !== undefined && + notificationId === lastLocalNotificationId + ) { log.error( 'Received twice the same notification in handleInitialLocalNotification' )